开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜