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 to check that which button is clicked in a page using struts 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 to check that which button is clicked in a page using struts" Watch "How to check that which button is clicked in a page using struts" New topic
Author

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

ram gaurav
Ranch Hand

Joined: Mar 29, 2006
Posts: 208
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

Joined: Mar 17, 2006
Posts: 44
Hi Ram,

Why don't u check the below given links.

jGuru
Apache Struts

Hope this helps

Cheers,
Liju


"What's in a name? That which we call a rose by any other name would smell just as sweet."<br />(William Shakespeare, Romeo and Juliet, Act II, Scene II)
Bruce Lee
Greenhorn

Joined: Mar 23, 2006
Posts: 6
You can use this:


and in your action class do this:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to check that which button is clicked in a page using struts