aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes JSP/ HTML ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "JSP/ HTML ?" Watch "JSP/ HTML ?" New topic
Author

JSP/ HTML ?

Sam Doder
Ranch Hand

Joined: Feb 06, 2008
Posts: 204
I have a form with 2 submit buttons as shown below.



I want to beable to post to the my_profile.jsp and know what button the person pushed. If he pushed the save button do something else if he pused the cancel button do something else.

request.getParameters() IS their away to differentiate between a button that was pushed from a button that wasn't pushed? If so how?

I was thinking I had to use javascript and hidden variables?
But if anybody can tell me of another way or show me a good way to go about this I would be greatful.
Thanks again.
[ November 18, 2008: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56204
    
  13

What is submitted for the "control" parameter for each button press?

Also, please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

Please go back and change your post to add a more meaningful subject by clicking the .


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JSP/ HTML ?
 
Similar Threads
Losing data from submit using the enter key
Cancel button should take to previous page
Onclick form submission
Getting html form name
how to get the text box value