How can i pass a button tag value from a jsp to a servlet ?
843840Mar 7 2008 — edited Mar 7 2008Hi 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