struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kris Barnhoorn" <>
Subject bean:define vs c:set
Date Thu, 29 Jul 2004 15:24:35 GMT

First of all I'd like to thank the contributors of this mailinglist. I'm
using struts for over 1.5 years now and i always found answers in

In this mailinglist and in the contrib/el there is often suggested that
the best way to prepare for smooth transition to JSP 2.0 is to use el
tags now and once the application runs on a container that supports JSP
2.0 just change the links to the tags in web.xml.

Well found an inconvenience in the fact that the define tag was not

I have a value in a request variable that specifies who many page items
should be displayed on the page.
But because the pager tag hasn't el capabilities i had to use the define
tag like:

<bean:define id="pageItems" name="optionsForm" property="pageItems"


In the el way it should be like:

<c:set var="pageItems" value="${optionsForm.pageItems}"/>


--> but the var pageItems can't be use in scriptlet (not in c or c_rt)

So I guess is there a way to work around this without declaring the
pageItems like this?

<% Integer pageItems =

Thank you

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message