File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes changing the value of html:submit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "changing the value of html:submit" Watch "changing the value of html:submit" New topic

changing the value of html:submit

Hari patnaik

Joined: Apr 13, 2005
Posts: 12
Hi All

I am currently using DispatchAction in conjuction with
<html:submit property="mode" > Add </html:submit>
<html:submit property="mode" > Modify </html:submit>
<html:submit property="mode" > Delete </html:submit>

I have 3 different types of Action (add, modify & delete). In the Action code in java we have coded 3 methods in the Action class i.e. add() , modify() & delete() as per the method naming conventions.

The display in the JSP is in title case where as in the struts action code its in small case.
My problem gets resolved when i change the display value to lower case (add)
something like this
<html:submit property="mode" > add </html:submit>

Even the value tag is not of much help.

What we need is the value of the button to be in Title Case (Add, Modfiy, Delete) in the jsp & the mehtods in lower case (add, modify, delete) using
the html:submit tag

Do let me know ur suggestions

I agree. Here's the link:
subject: changing the value of html:submit
jQuery in Action, 3rd edition