Those results seem reasonable.  You should assume the value is a string,
unless you specifically have an integer type.  In your case, the value
"1" is a string.  Now, if you did "${1}", that might give you an
integer.

> -----Original Message-----
> From: Starting out [mailto:[EMAIL PROTECTED] 
> 
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to