I think that you need to expose the scoped attribute, foobar, as a scripting
variable. You will then be able to use this scripting variable as an RT
expression in your <html:select>. Both <bean:define> & <jsp:useBean> will do
this for you.

Out of interest - why can't you use the Struts EL tags?

HTH,

Paul

> -----Original Message-----
> From: Woodchuck [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 30, 2004 4:04 PM
> To: [EMAIL PROTECTED]
> Subject: 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


**********************************************************************
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.
**********************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to