This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Attribute id (or class) invalid for tag submit according to TLD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Attribute id (or class) invalid for tag submit according to TLD" Watch "Attribute id (or class) invalid for tag submit according to TLD" New topic
Author

Attribute id (or class) invalid for tag submit according to TLD

matt love
Ranch Hand

Joined: Jan 25, 2010
Posts: 67
If I use tld tags like so:

<td>
<html:submit property="btnInitializeDB">
<fmt:message key="mainMenu.select" />
</html:submit>
</td>

is there a way to standardize the width of the button so I can change the width in 1 spot and have it affect all like buttons?

I've tried CSS inline and internal, like:

<html:submit property="btnInitializeDB" id="x">

which results in:

"Attribute id invalid for tag submit according to TLD".

Is there a good reason to retain the tld tags or should I just go with straight html? If you recommend keeping the tld tags, can you help me make it work?

Thanks.

Matt
Lorand Komaromi
Ranch Hand

Joined: Oct 08, 2009
Posts: 276
styleId instead of id!

Sometimes it's useful to check the documentation...


OCJP 6 (93%)
matt love
Ranch Hand

Joined: Jan 25, 2010
Posts: 67
Many thanks Lorand.

Works like a charm.

Matt

Lorand Komaromi
Ranch Hand

Joined: Oct 08, 2009
Posts: 276
You're welcome!
 
Consider Paul's rocket mass heater.
 
subject: Attribute id (or class) invalid for tag submit according to TLD