Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:form id attribute

 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dirk,
It's styleId, instead of id.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gracias.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic