Why isn't this done for all of applicable struts tags then?  Isn't
this additional layer of indirection (which one would have if they
were using straight HTML for the forms) valuable?

eric.

On Sun, Nov 19, 2000 at 01:52:47PM -0500, [EMAIL PROTECTED] wrote:
> 
> 
> 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]
>      |__/
> 
> 
> 
> 
> 
> 
> 

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

Reply via email to