Well I find "name of a JSP bean" to be a bit vague, so I'm not sure, but
I think the sentence means that the offset attribute can either be a
String literal ("5") or a reference to an object ("${objName}")
available to the JSP PageContext (this would be an attribute set in one
of the four scopes -- maybe that's what "JSP bean" means) of type
java.lang.Integer. So you should be able to set the offset dynamically
with something like "request.setAttribute("objName", new
Integer(myOffset));" if I am not mistaken.Erik
sachin wrote:
hi all ,
i need to define an iterator with an offset <logic:iterate id="abc" name="xyz" property="def" length="5" offset="5">
now i want the offset to come dynamically either through a variable defined in JSP or through the bean itself ..
The struts-documentation says that ..
"This can be either an integer that directly expresses the desired value, or the name of a JSP bean (in any scope) of type java.lang.Integer that defines the desired value"
i am not getting the meaning of this line ..
can please anyone explain me ..
Thanks in advance
regards , Sachin Hegde Paradyne Infotech Limited , Mumbai
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

