Hi,
I have written a HTML script containing a form which will invoke a
servlet.Instead of button I used images to submit the form.(ie using <Input
type="Image" name="OK" value="1" >).In order to get the value of the Image
clicked ,I used req.getParameter("OK") in my Servlet code.But running this
servlet will retun a null value.How can I fetch the value of this
Image(Clicked)..Please help me..
The following is the simple code I tried
public void doGet (HttpServletRequest req, HttpServletResponse response)
throws ServletException, IOException
{
response.setContentType("text/html");
PrintWriter out =response.getWriter();
String img=req.getParameter("OK";
out.println("Image Name :"+img);
}
please help me...
Regards
Unni
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html