Nitin,

Seems to me you have a couple of options:

1. use some javascript on the page to change the action dependent on which button is 
pressed (don't ask me what the script needs to be but I know it can be done)

2. assign values to both submit buttons, and figure out in a 'relay' servlet what do 
with the request, by
    a. redirecting the request to either of the 'true' servlets
or b. calling the 'true' servlet from within the relay servlet and sending back the 
output

There may of course be other ways...

Hope this is helpful,

- simon

Resource Allocation wrote:

> Hi All,
>
> I'm facing a problem in calling diferent servlets from a single HTML. As you know we 
>specify the servlet's address and name in action parameter of form tag. But what do I 
>do if I want to call different servlets depending on what button is pressed. Does 
>anybody knows some thing about it.
> Please respond urgently.
>
> Thanx in advance,
>
> Nitin
>
> IMRglobal Ltd.
> Plot # 22, SEEPZ,
> Andheri (E), Mumbai-400096
> Phone  : 8291421 Ext. 151
> Mail To : [EMAIL PROTECTED]

___________________________________________________________________________
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