File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Adding parameter to the url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Adding parameter to the url" Watch "Adding parameter to the url" New topic

Adding parameter to the url

rahul deo

Joined: Jul 05, 2011
Posts: 10

I am using the form in jsp and having 4 buttons with different names . On clicking the button each time, the value it should get added to the action url. Can you please tell me, how to do this? Because every time i have to do manually.
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Instead why cant you submit form on click via javascript?
I agree. Here's the link:
subject: Adding parameter to the url