Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Joe Ess
  • salvin francis
  • fred rosenberger

changing the value of html:submit

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

I have gone to look for myself. If I should return before I get back, keep me here with this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!