You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Amit Badheka <am...@direct2s.com> on 2003/01/02 07:12:42 UTC

problem with bean:size

Hi All,

I am using something like below in my jsp -

<bean:size id="recPerPage" name="recurserBean" property="images" scope="session"/>

where, recurserBean is my form bean and images is a property of bean, that is a vector. Now I am looking to get the size of vector. I am trying to get this value as

Object showRec = (Object) pageContext.getAttribute("recPerPage");

Now, the problem is that sometime it returns me value as Java.lang.Integer and sometimes as String. I dont know why this is happenning.

Any idea.

Please help.