aspose file tools*
The moose likes Servlets and the fly likes Three buttons in one form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Three buttons in one form " Watch "Three buttons in one form " New topic
Author

Three buttons in one form

Chak Terlapu
Ranch Hand

Joined: Oct 20, 2000
Posts: 32
Hi,
I have three buttons in a form. Each button passes control to a different servlet when clicked. The problem is it is not passing any parameters when button is clicked. When i used the buttons individually everything works fine, the parameters are received correctly. Could anyone tell me what the problem might be.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040


The highlighted portion I guess is the
code (I am no javascript expert) that is
invoking the servlets. And as you can see the
URL doesn't have any parameters. Hence, I am
not surprised that you don't get the parameters
in your servlets: add.class, delete.class
and update.class.
I donot know how javascript will add parameters to the URL's.
Sorry!
I hope I am right, please check with a javascript expert.
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Three buttons in one form
 
Similar Threads
req.getParameterValues returning null
Strange problem ??
URLConnection and form based authentication
Forms in servlet
Problem while receiving parameters..