This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can we change the button name of a jsp from an action class?