Did you try just using regular OGNL in the onclick and value attributes? It'll obviously work for "value", not sure if onclick is evaluated.
It seems like it wouldn't take much time to just try it. Dave --- On Mon, 6/16/08, Bruno Cavestro <[EMAIL PROTECTED]> wrote: > From: Bruno Cavestro <[EMAIL PROTECTED]> > Subject: iterators for input buttons? > To: "Struts Users Mailing List" <user@struts.apache.org> > Date: Monday, June 16, 2008, 6:44 AM > Hello, > > I want my jsp code to use an iterator. The goal is to get > my html page > contains some code like the following: > > <FORM NAME="form_name" > METHOD="POST"> > <INPUT TYPE="BUTTON" > VALUE="value1_fromIterator" > ONCLICK="button1('value1_fromIterator')"> > <INPUT TYPE="BUTTON" > VALUE="value2_fromIterator" > ONCLICK="button1('value2_fromIterator')"> > ... > </FORM> > > so .. given the basic iteration: > <s:iterator value="myList"> > <s:property /><br> > </s:iterator> > > How can I do that? And How can I force each input button to > have an Onclick > event associated? > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]