On 7/26/05, Marco Mistroni <[EMAIL PROTECTED]> wrote: > hello david > thanx for your reply... > there's still something i am missing about this expression language.. > > <html:options collection="${EXPENSE_TYPES}" property="id" > labelProperty="description"/> > > does this means that i have to have in the request > - a parameter named "EXPENSE_TYPES"
An *attribute* named EXPENSE_TYPES, not a parameter. If you want to use the name constant from your Java class, you might want to look at the <unstandard:bind> tag in the Taglibs sandbox. -- Martin Cooper > - a parameter under a constant named EXPENSE_TYPES (whose real value > can be anything..)? > > i thought that also the second option will do... > > thanks in advance and regards > marco > > > > > > -----Original Message----- > > > From: Marco Mistroni [mailto:[EMAIL PROTECTED] > > > Sent: Monday, July 25, 2005 12:08 PM > > > To: Tag Libraries Users List > > > Subject: how to do this with JSTL > > > > > > > > > hello all, > > > i am trying to port my application from using struts tag > > > towards using JSTL tags, but i got stuck in a point where i > > > have to display a selectable list.. below was the original > > > struts code.. > > > > > > <html:select name="entry" property="type" > > > > <html:options collection="<%= > > > Constants.EXPENSE_TYPES%>" property="id" labelProperty="description"/> > > > </html:select> > > > > > > Basically,thi swill lproduce a selectable list where the > > > selected value is the one corresponding to thep roperty.. > > > > > > am i correct that, if i want ot use JSTL, i have to use a > > > c:forEach for displaying the collection, and a c:if to test > > > teh value for each value in teh collection? > > > > > > anyone can give any hints? > > > > > > thanx and regards > > > marco > > > > > > --------------------------------------------------------------------- > > > 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] > > > > > > --------------------------------------------------------------------- > 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]