Chad LaJoie wrote:

> I am trying to forward a request back and forth between a servlet and some
> JSPs.  The way I am trying to do this is via a namedDispatcher.  The
> problem I am having is, how do I name a JSP.  I was looking through the
> web-app DTD and it seems that something like this would work
>
> <serevlet>
>          <servlet-name>
>                  RSSChannelWizard
>          </servlet-name>
>          <jsp-file>
>                  /rss/rsschannelwizard.jsp
>          </jsp-file>
> </servlet>
>
> Will this work (given that I can get to the above jsp from the above address)?
>

Given this declaration, you should be able to access your JSP page via a named
dispatcher like this:

    RequestDispatcher rd =
      getServletContext().getNamedDispatcher("RSSChannelWizard");
    rd.forward(request, response);

or (of course) using a regular dispatcher:

    RequestDispatcher rd =
      getServletContext().getRequestDispatcher("/rss/rsschannelwizard.jsp");
    rd.forward(request, response);

>
> Chad La Joie                           "Only a man who can not conquer
> IT Specialist                             his deficiencies feels the need to
> IS&C - WARD                              convince the world he has none"
>

Craig McClanahan



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to