Try styleClass
<html:submit property="submit" value="Submit" styleClass="button"/>

Look here to find a list of valid attributes for submit

http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#submit

-JC

-----Original Message-----
From: Andrew H. Peterson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 07, 2002 11:33 AM
To: Struts User Forum (E-mail)
Subject: Setting style class to html taglib


I'm using the html taglib, specifically the submit and reset tags.  I would
like to apply a CCS class to the buttons called "button":

<html:submit property="submit" value="Submit" class="button"/>
<html:reset class="button"/>

I tried setting the class attribute, but I get the following error:

Attribute class invalid according to the specified TLD

I'm using Struts 1.02

Thanks in advance.

Andrew



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to