• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Govind Rajith
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can't you just have the jsp check for this condition and then display the appropriate button?
 
Periakaruppan Thiagarajan
Ranch Hand
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess its not possible from the action class. Instead, add one logic:equal tags to achieve this.

Regards,
Pk
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic