You can use a JavaScript onSubmit event handler to change the ACTION of
the form as required. When the event handler returns (I think it is
supposed to return true), the form will be submitted normally to
whatever servlet was set in the ACTION.

My JavaScript is a little rusty, but all the information you need should
be buried in <http://developer.netscape.com/docs/index.html> in the
Client Side JavaScript Guide and Reference.

Cheers,
Chris

Chainlu Sharma wrote:
>
> Hi
> I have a small problem.
> I have 3 servlets - Login, FormEdit and ListEdit
> In the Login servlet, I generate a form where I get the user name and
> password and have a radiobutton (2 buttons)option .
> I use the username/password to generate the dir  for the user and the
> radiooption to determine the servlet to be called.
> If (1) FormEdit
> else ListEdit.
>
> I would like to know how I can invoke the servlets(FormEdit/ListEdit)
> accordingly and also pass them the dir value.
> Thanx in advance
> ---Chainlu
[HTML snipped]

___________________________________________________________________________
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