You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Marco Mistroni <mm...@gmail.com> on 2005/07/25 21:07:32 UTC

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