This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Label of the submit button does not working when i use DispatchAction

 
sathish kumar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

I using DispatchAction in my Action class.

The problem i got is if use two words to show the label of the submit button
it takes vaule attribute of the submit button and display it as label.

i use the submit button like this


<html:submit property="method" value="showDetails"><bean:message key="com.show"></html:submit>

I have showDetails method in my Action class. and Key value of the bean:message tag is Show Details

I want to show label as Show Details but it takes value attribute of the button like showDetails as one word.


please help me

thanks
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use LookupDispatchAction instead of DispatchAction. This link explains how to use it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic