I want to put a hidden input onto my html form and am doing so with the following struts tag:
<html:hidden property="currentPage" value="page1"></html:hidden>
which renders this html:
<input type="hidden" value="page1" name="currentPage">
How do I set the id property on the html element? So I want the html to be rendered like:
<input typ开发者_开发技巧e="hidden" value="page1" name="currentPage" id="currentPage">
Try this:
<html:hidden property="currentPage" value="page1" styleId="currentPage"></html:hidden>
精彩评论