You can do by two ways:
1. Through local redirect
2. Through passing the variable in the session.
ashu
> -----Original Message-----
> From: AMIT BHATIA [SMTP:[EMAIL PROTECTED]]
> Sent: Sunday, September 03, 2000 8:22 AM
> To: [EMAIL PROTECTED]
> Subject: Invoking a Servlet from another Servlet!!
>
> hello everyone...
> i have a query regarding invoking a servlet from another servlet.
>
> i have a shopping mall as my site, & i have registered a new user. now, i
> have
> to take this user to his login page. please note that i am using ms access
> database.
>
> i have tried giving a link to that servlet as
> "http://localhost:8080/servlet/ProServ1?ulog=?&upass=?"
> where i am taking (?,?) as the username & password, respectively. but,
> since
> this is a new user, & there is no match for this username in the database,
> the
> servlet gives me the login error page(another html page).
>
> i have also tried making a new servlet altogether, & passing paremeters
> using
> the <input type=hidden> tag. but, again, no response.
>
> i would appreciate any suggestions on this.
>
> thanx,
> best regards,
> amit bhatia.
>
> ____________________________________________________________________
> Get free email and a permanent address at http://www.netaddress.com/?N=1
>
> __________________________________________________________________________
> _
> 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
___________________________________________________________________________
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