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 Starting out <st...@gmail.com> on 2004/09/01 02:04:21 UTC
How jsp assigns the variable type for
i seemed to ask this on tomcat list, anyway here it is
i fetched an int type from mysql and assign to variable
<c:set var="eid" value="${rs.rows[0].eid}" scope="session" />
it seems that its assigning type int since if i
String test = (String) pageContext.getAttribute("eid");
i get a cast error
but if i
<c:set var="eid" value="1" scope="session" />
the ff
String test = (String) pageContext.getAttribute("eid");
would work
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org