This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
 
wood burning stoves
 
subject: How to replace submit tag with stylesheet
 
Similar Threads
more than one submit button and action
Pls give reply as immediate as possible
Multiple Submit Buttons?
How can I use hyper link when submit a form?
how can i map different Actionform class to single Action class