| Author |
html:form id attribute
|
Dirk Schreckmann
Sheriff
Joined: Dec 10, 2001
Posts: 7023
|
|
I'd like my forms to have the id attribute specified. Unfortunately, the standard struts-html.tld doesn't specify an id attribute for the form tag, so if one is added in the JSP using the html:form tag, a problem occurs at runtime complaining that the TLD doesn't specify an id attribute. So, I edited the TLD and added one. After editing it, I'm allowed to specify an id attribute to the html:form tag, but this id doesn't show up on the html page that is generated and sent to the web browser. My question is, without editing org.apache.struts.taglib.html.FormTag, how do I get the form id attribute to show up when using the html:form tag? Is it even possible? And then I have the same question concerning various other html elements, like html:text, html:password, html:submit, ... [ April 10, 2004: Message edited by: Dirk Schreckmann ]
|
[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26213
|
|
Dirk, It's styleId, instead of id.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
Dirk Schreckmann
Sheriff
Joined: Dec 10, 2001
Posts: 7023
|
|
|
Gracias.
|
 |
 |
|
|
subject: html:form id attribute
|
|
|