No,
with type="Image" you accept x and y coordinate ("OK.x" or/and "OK.y") and not set
value.
;-)
------------------------
From: Unnikrishnan M K <[EMAIL PROTECTED]>
Subject: Request.getParameter Problem
Date: Thu, 25 May 2000 11:00:52 +0530
To: [EMAIL PROTECTED]
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
---------------End of Original Message-----------------
--------------------------------------------------------
Name: Pollio
E-mail: [EMAIL PROTECTED]
Date: 07/12/2000
Time: 15:29:52
--------------------------------------------------------
___________________________________________________________________________
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