I'd do it like this:

Give each button a different name in the form, e.g. <input type=submit
name="Save" value=saveAll>

inside your servlet check if the request contains a parameter with the same
name as the button. If it dows, branch.

        if(request.getParameter("Save")!= null) {
            System.out.println("Saving...");
            save();
        }

dunno if there's a more elegant method...

Hope that helps,

Frauke

Frauke Nonnenmacher
Fat Cat Cartoons
www.fatcatoons.com <http://www.fatcatoons.com>
___________________________________________________
The statements and opinions expressed here are my own
and do not necessarily represent those of the VEGA Group.

___________________________________________________________________________
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