Frauke Nonnenmacher wrote:
>
> > 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.
>
> If the servlet checks the name, not the value the two buttons should be
> identical... No need to recompile.
Yes, that's exactly what I was saying. If one checks the value by
comparing it to some string, there's a drawback. If one checks that
getParameter(name) is non-null, then the text displayed on the button
can be changed without affecting the servlet.
___________________________________________________________________________
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