tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Cooper <mfncoo...@gmail.com>
Subject Re: how to do this with JSTL
Date Tue, 26 Jul 2005 15:49:08 GMT
On 7/26/05, Marco Mistroni <mmistroni@gmail.com> 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:mmistroni@gmail.com]
> > > 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: taglibs-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message