struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chamal desilva <chama...@yahoo.com>
Subject Submit Button Tag passing an expression to onclik attribute
Date Wed, 20 Sep 2006 03:43:31 GMT
Hi,

Can we pass an expression to onclick handler of struts
html:submit tag.

<html:submit  styleClass="headerclk" property="submit"
value="<%=String.valueOf(ArrEmpList.get(i))%>"
styleId='<%=String.valueOf(ArrEmpList.get(i))%>'
onclick="hilightButton2('<%=myval%>');"
></html:submit>

We tried this. But the HTML is generated as

onclick="hilightButton2('<%=myval%>');" 

The value of myval variable is not printed in html.

Plz help us to solve this problem.

Best Regards,
Chamal.



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message