you need to use styleClass instead of class when working with Struts
tags.

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

should work...

see http://jakarta.apache.org/struts/doc-1.0.2/api/index.html for more
details
-----Original Message-----
From: Andrew H. Peterson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 07, 2002 12:33 PM
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