You can use the <c:url> JSTL tag

eg something like this...

<c:url var="link" value="${request.getRequestURL()}">
    <c:param name="nodeclicked" value="${NODEID}"/>
    <c:param name="firstChild" value="true"/>
</c:url>

--jason


shanmugampl wrote:


------------------------------------------------------------------------

Subject:
Having an expression in an set tag
From:
shanmugampl <[EMAIL PROTECTED]>
Date:
Sat, 05 Jul 2003 15:16:06 +0530
To:
taglibs-user <[EMAIL PROTECTED]>


Hi All,


I used to construct a link as follows

<%
String link = request.getRequestURL() + "?nodeclicked=" + NODEID + "&firstChild=true";
%>


I want to replace this with the set tag. I tried it as follows

*<c:set var="link" value="${request.requestURL + '?nodeClicked=' + NODEID + '&firstChild=true'}"/>*

but this is not working. I am getting the following an error

An exception occured trying to convert String "?nodeClicked" to type "java.lang.Double"

Have i done anything wrong in writing the expression.

Thanks
Shanmugam PL




------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Jason Lea


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to