开发者

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

开发者 https://www.devze.com 2023-01-01 14:06 出处:网络
I am using following button tag to display button by passing some runtime value to \"value\" attribute:

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 throwing an jasper exception saying, setValue(String) cannot work with html:button.

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

Thanks in advance.


This is how you have to write.

<html:submit styleClass="button50">
<%=no_list %>
</html:submit>
0

精彩评论

暂无评论...
验证码 换一张
取 消