This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Struts and the fly likes How can we change the button name of a jsp from an action class? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How can we change the button name of a jsp from an action class?" Watch "How can we change the button name of a jsp from an action class?" New topic
Author

How can we change the button name of a jsp from an action class?

Govind Rajith
Greenhorn

Joined: Feb 15, 2007
Posts: 12
Hello,
I would like to know how we can change the button name from an action class. Inside the action class a condition is checked and if it becomes true then the submit button in the jsp should change to edit button. Please give some idea.

Thanks in advance.
Govind Rajith
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Can't you just have the jsp check for this condition and then display the appropriate button?


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Periakaruppan Thiagarajan
Ranch Hand

Joined: Jul 26, 2005
Posts: 65
I guess its not possible from the action class. Instead, add one logic:equal tags to achieve this.

Regards,
Pk
 
GeeCON Prague 2014
 
subject: How can we change the button name of a jsp from an action class?