This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
which submit button is clicked?
I want two buttons on a page, one for "search refine", one for "submit", how to do ?
Grid using Struts
make javascript form accesible
Struts, submit button with parameters