Or: <html:select property="definition" onchange="<%= \"formSubmit(this.form,\" + s + \")\" %>">
-----Original Message----- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: 21 May 2002 17:18 To: Struts Users Mailing List Subject: RE: Tag || JSP problem I haven't tested this code, but you can try <% String s = //get s String onChangeFunction = "formSubmit(this.form," + s + ")"; %> <html:select property="definition" onchange="<%=onChangeFunction%>"> The behavior you are describing may be a result of a JSP limitation where you can only have a single expression rendered as an attribute value. I ran across this same problem and the above solution seemed to fix things. JavaServer Pages 1.2 Specification JSP.2.13.1 Request Time Attribute Values <snip> The expression must appear by itself (multiple expressions, and mixing of expressions and string constants are not permitted). Multiple operations must be performed within the expression. </snip> robert > -----Original Message----- > From: Nikolov. Dragomir [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 21, 2002 11:38 AM > To: Struts Users Mailing List > Subject: Tag || JSP problem > > > Hello, > I am having the following code in a JSP file. > > <html:select property="definition" onchange="formSubmit(this.form, > <%=s%>)"> > <html:options collection="<%=Constants.LIST%>" property="id" > labelProperty="name"/> > </html:select> > > in the resulted HTML code I have the Constants.LIST replaced with its > value, but > the <%=s%> is not processed and is present as it is in the html. > It look to me as a JSP compiler problem... > Does anyone knows a workaround. > > Best Regards > Dragomir > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> Visit our website at http://www.ubswarburg.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>