That should work as long as you change the rtexprvalue in the tag descriptor
file.

Matt






Eric <[EMAIL PROTECTED]> on 11/19/2000 01:22:52 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:    (bcc: Matas Veitas/AMS/AMSINC)

Subject:  scriptlets and struts tags

I suppose this isn't really a struts-specific question, but
anyways...is there a way to have struts tags inside of a scriptlet
loop and have them use a variable from that scriptlet as one of their
attribute values?  I tried

      <form:select property="month" size="1">
      <% for (int i = 1; i <= 12; i++) { %>
        <form:option value="<%= i %>"><%= i %></form:option>
      <% } %>
      </form:select>

but this (of course) gives me values of "<%= i %>" since it is
quoted...  and escaping the quotes (of course) gives me parse errors
because the attribute value isn't in quotes then.

thanx,
eric.

--
 _____  _
| ____|(_)     http://www.iit.edu/~jenseri
|  _|  | |     Page me via ICQ at
| |___ | |     http://wwp.mirabilis.com/19022931
|______/ |     or by mailing [EMAIL PROTECTED]
     |__/







Reply via email to