Geeta Ramani wrote:
>
> If you have a submit button like this:
> <input type="SUBMIT" name="save" value=" speichern ">
>
> then you can know that this submit button was clicked because
> req.getParameter("save") will return " speichern ".

Checking the value returned by getParameter is a common solution to
determining which button was selected in the form. One drawback is that
if someone wants to change the text displayed on the button face, the
servlet must be recompiled. A better solution is to check that the
return value is non-null, rather than checking that the return value
equals some String. Just remember to give each button in the form a
unique name.

___________________________________________________________________________
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