Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to check that which button is clicked in a page using struts

 
ram gaurav
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am using struts to my website.I have one page and there are 3 buttons on that form.

As there is only one "action" tag in form , so how can i recognize that which button is clicked , as the functionality of each button is different.

Thanks
Regards
 
Liju Cherian
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ram,

Why don't u check the below given links.

jGuru
Apache Struts

Hope this helps

Cheers,
Liju
 
Bruce Lee
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use this:


and in your action class do this:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic