File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Attribute id (or class) invalid for tag submit according to TLD
 
Similar Threads
cewolf charts
Pls give reply as immediate as possible
Confused whether Error is related to TLD
jboss jsp tag error
onClick invalid