Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

in struts how do you set the id property for html:hidden

Tags:

jsp

struts

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 type="hidden" value="page1" name="currentPage" id="currentPage">
like image 278
rabs Avatar asked Jul 14 '11 00:07

rabs


1 Answers

Try this:

<html:hidden property="currentPage" value="page1" styleId="currentPage"></html:hidden>
like image 129
Femi Avatar answered Jan 03 '23 10:01

Femi