Input type=image name=button
actually submits two different parameters: button.x and button.y

They do not carry the value of the input tag, but rather the x & y
coordinates where the image was clicked (acts just like an imagemap).  So
all you can do is check for their existence:

boolean buttonClicked = (request.getParameter("button.x") != null) ? true :
false;

Lance Lavandowska
www.AgDomain.com
www.Brainopolis.com

----- Original Message -----
From: "Meng, Dong J (CAP, CDI)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 22, 2000 9:31 AM
Subject: Image button problem


> Hi:
>
> I created two image submit buttons as following:
> <INPUT TYPE='IMAGE' NAME='button' VALUE='New Contact'
> SRC='../images/newCon.gif'>
> <INPUT TYPE='IMAGE' NAME='submit' VALUE='Contact Info'
> SRC='../images/con_info.gif'>
>
> after I click this button, it will call another servlet to get which
button
> has been clicked.
> button = (String)req.getParameter("button");
>
> But I get null value. Do you know what's the problem?
>
> Thanks in advance.
>
> DJ
>
>
___________________________________________________________________________
> 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
>

___________________________________________________________________________
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

Reply via email to