You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marc Guillemot <ma...@amath.net> on 2002/10/09 14:07:11 UTC

generate input field id parameter with struts:html?

Hi,

it seems there is no way to generate an html id parameter for input fiels
with struts:html. Is it right?

The id parameter is quite interesting to use with the <label> tag:
ex:
<input type="radio" name="what" value="structure" id="radio_dump_structure"
checked="checked" />
<label for="radio_dump_structure">Structure only</label><br />

Marc.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: generate input field id parameter with struts:html?

Posted by Andrew Hill <an...@gridnode.com>.
Yep, you can do it. :-)
Its just not called "id" in the tags - this is because JSP (or something
anyhow) has reserved the name "id" for use in tag attributes, so instead of
calling it "id" in the struts tags it has the name "styleId"

-----Original Message-----
From: Marc Guillemot [mailto:marc@amath.net]
Sent: Wednesday, October 09, 2002 20:07
To: struts-user@jakarta.apache.org
Subject: generate input field id parameter with struts:html?


Hi,

it seems there is no way to generate an html id parameter for input fiels
with struts:html. Is it right?

The id parameter is quite interesting to use with the <label> tag:
ex:
<input type="radio" name="what" value="structure" id="radio_dump_structure"
checked="checked" />
<label for="radio_dump_structure">Structure only</label><br />

Marc.


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>