tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael G. McGrady" <>
Subject Re: Submit Button
Date Tue, 07 Sep 2004 20:51:04 GMT
Ross, Douglas wrote:

>I believe the browser only sends the clicked submit button value. So the
>trick (if you would call it that) is to name all your submit buttons the
><input type="submit" name="action" value="New">
><input type="submit" name="action" value="Edit">
><input type="submit" name="action" value="Delete">
>Whichever one the user clicks is the one sent to the server:
>request.getParameter("action")=="New" | "Edit" | "Delete";
>Hope this helps. Note: the img and the input type=image tags do not do

This is an oops which is hard to catch.  If 
request.getParameter("action") is "New", 
(request.getParameter("action")  == "New") is FALSE.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message