Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How can i pass a button tag value from a jsp to a servlet ?

843840Mar 7 2008 — edited Mar 7 2008
Hi all...
My problem is that, i have a button tag in a jsp page with certain value set. On submitting the jsp i am calling a servlet in which i want to access that buttons value for further manipulation. I have tried a lot but i am getting a null value everytime. Here is the code snippet......

// In jsp page

<input type="button" Id="Interactive" value="Interactive Translation" OnClick="javascript:Submit_Input();">

//After that in servlet i have

String route = req.getParameter("Interactive");
System.out.println("Route is : "+route); // here it prints null

Can someone help regarding this ? Waiting for your wise reply......
Thank you all.........
Prasad
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 4 2008
Added on Mar 7 2008
1 comment
582 views