This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
All of us know that using html struts tag like this
will be rendered in HTML like this What i want is to add some attribute in the HTML struts tags to be just copied to the corresponding rendered HTML tag. Is that possible ?
The custom tag is rendered based on the TLD file which holds its definition. Any attribute that you add which is not a part of the TLD for this tag [like the validate attribute you added in the example] will not be tolerated by struts, and an exception will be thrown at runtime.