I am sorry if I have not explained it in detail.

What actually going on is :

1. A client accesses the Authentication servlet thru a
   link.
2. Authentication servlet checks to see if the user is
      authorized (it may do database verification for
  first time access (or) check for sessionID for
   subsequent requests)
3. if the user is authorized, for first time access,
 it will serve a page (or) for subsequent access, it
 will check for what action he is requesting
4. depending on action, authentication servlet
forwards       his request to different servlets
   running in the same web server to process his
request and forward the response.

  what I intend to do is, in the Authentication
servlet, retrieve session and context in the doPost()
 method, and after the verification is done,
  create
  RequestDispatcher dispatcher =
context.getRequestDispatcher("/servlets/Otherservlet.class");
and then call
dispatcher.forward(request, response);

in OtherServlet.class, there is service() method which
takes in request, response objects
and does processing depending on the action in request
object.

the environment is Apache - JServ 1.1 running on unix.

cheers,

vsr

--- Nic Ferrier <[EMAIL PROTECTED]> wrote:
> >>> Pathuri <[EMAIL PROTECTED]> 17-Apr-00 1:13:31
> PM >>>
>
> >Has anyone used the RequestDispatcher object ?
>
> Yes (it's been in the API for nearlly 2 years - or
> is it more?)
>
> No offence but you're probably just doing it wrong.
>
> Why not send us more details?
>
> Please don't send the code if you can summarize
> exactly what you're
> doing without code.
>
> In addition you need to tell us what container
> (servlet engine)
> you're using.
>
>
>
> Nic Ferrer
>
>
> PS: you can't really do it any other way
>
>
___________________________________________________________________________
> 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
>

=====
vsr

__________________________________________________
Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.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

Reply via email to