U can achieve this on the server side or the client
side.
U can set a parameter on the client side indicating
what exactly caused the form to submit and depending
on this the servlet which accepts the form will
forward the request to one of the two other servlets
which are actually going to process the request.
But it may be better to do this thing on the client
side so as to reduce ur server side processing.
the onClick event handler of the link and the button
may first set a global parameter which indicates if
the button of the link was clicked upon, then it may
call a call a function which based on this parameter
sets the action attribute of the form and then calls
the submit() method of the form to submit it.
--- sunil mallya <[EMAIL PROTECTED]> wrote:
> Hello all,
> I have a form . In that form there is a link
> and a submit button. Now depending on what i click,
> it
> should take me to two different servlets . Now is
> that
> possible within a form? if so how ?
>
> thanks in advance
> sunil
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Mail – Free email you can access from
> anywhere!
> http://mail.yahoo.com/
>
>
___________________________________________________________________________
> 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
__________________________________________________
Do You Yahoo!?
Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/
___________________________________________________________________________
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