aspose file tools*
The moose likes Struts and the fly likes How to replace submit tag with stylesheet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to replace submit tag with stylesheet" Watch "How to replace submit tag with stylesheet" New topic
Author

How to replace submit tag with stylesheet

sudhakar Tadepalli
Ranch Hand

Joined: Dec 27, 2001
Posts: 130
Hi,
I need to change the below line to use stylesheet. Can some one help out?.
<td><html:submit property="method"><bean:message key="button.edit"/></html:submit>

I was told to use stlesheet class for all buttons. Example looks like this

<input name="save" type="submit" value="Save" class="form_button" >

How can i replace the bove line using style sheet ?. I am using LookupDispatchAction for action class.

Thanks
Sudhakar
Seb Mathe
Ranch Hand

Joined: Sep 28, 2005
Posts: 225
Use the styleClass attribute :

<html:submit property="method" styleClass="className">...


Regards,<br />Seb<br /> <br />SCJP 1.4
sudhakar Tadepalli
Ranch Hand

Joined: Dec 27, 2001
Posts: 130
Thanks that works.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to replace submit tag with stylesheet