How to set dynamic value to "value" attribute of struts html:button tag ?

Posted by Prat1 on Stack Overflow See other posts from Stack Overflow or by Prat1
Published on 2010-05-28T08:39:33Z Indexed on 2010/05/28 8:41 UTC
Read the original article Hit count: 161

Filed under:
|

I am using following button tag to display button by passing some runtime value to "value" attribute:

<html:button  styleClass="button50" value="<%=no_list %>" onclick="callOneFunction(this);" />

it is not throwing an jasper exception saying, setValue(String) cannot work with html:button.

Please help me out ot resolve my problem, I want to pass some value at runtime to vale attribute. How to do it ?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about tag

Related posts about htmlbutton