You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Woodchuck <wo...@yahoo.com> on 2004/07/30 17:03:55 UTC

jstl indexes within html tags?

hello,

i don't have the option of using struts-el, nor am i using Tomcat 5. 
how can i get jstl and struts to work in harmony?

<c:forEach var="foobar" begin="0" end="5">

<html:select name="mybean" property="???????">
<html:optionsCollection name="mybean" property="myoptions"/>
</html:select>

</c:forEach>

i need the ??????? to be dynamic using the value of the index "foobar"
so the final result seen by the <html:select> tag is this:

<html:select name="mybean" property="myselect[0]">
<html:select name="mybean" property="myselect[1]">
<html:select name="mybean" property="myselect[2]">
...and so on

has anyone hacked a solution for this?  i don't care how ugly the hack
is!  remember, tomcat 5 and struts-el is not an option for me.

thanks in advance!!



		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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