Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

changing the value of html:submit  RSS feed

Hari patnaik
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!