File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 1506
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
 
 
subject: How can we change the button name of a jsp from an action class?
 
Similar Threads
Form Action
call remote url in struts
Trigger action on combo change
help with struts and a dynamic JSP
reset() funstion is not working