You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by "Balakrishnan, Vijay" <VB...@newedgenetworks.com> on 2004/01/22 00:25:42 UTC

convert String to Long

Hi,

I want to do the following in the jsp:scriplet using jstl:

<c:set var="itemIdA" value="currentPath.entityA.key" />
    <!--
    <jsp:scriptlet>
    try
    {
        Long tempLong = new
Long(((PathProxy)currentPath).getEntityA().getKey());
        pageContext.setAttribute("itemIdA", tempLong);
    }
-->
TIA,
Vijay

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org