I am not using any querystring attachments in my request dispatcher but the path
to my jsp reads "../XMPlace/CreateFolder.jsp" is there anything I can do to make
this work moving from a servlet to a jsp. I am using ServletExec as my servlet
engine and when ever you use a servlet it always puts /servlet/ before the
servlet name as a virtual directory so I have to use the "../" escape character
to get to my other pages.
Any suggestions? Thanks for the previous help R2.
To: David J. Reck
cc:
Date: 08/13/2000 01:13 AM
From: [EMAIL PROTECTED]
Subject: RE: using RequestDispatcher.forward
Hi,
Do you use querystring attachments to your JSP/HTML while using the
request dispatcher or does your reqdispatcher JSP/HTML file name begin with
"../filename.jsp" ?? In both cases you will face a problem. your filename
should begin with "/filename.jsp" and not".." according to the specs.
Regards,
R2
> ----------
> From: David Reck[SMTP:[EMAIL PROTECTED]]
> Sent: Sunday, August 13, 2000 1:19 PM
> Subject: using RequestDispatcher.forward
>
> I have the following code:
>
> RequestDispatcher rd =
> getServletContext().getRequestDispatcher("/servlet/testServlet");
> rd.forward(request, response);
>
> The code works when I forward to a servlet but the code does not work when
> I try
> to forward to a jsp page or a html page. I get a
> java.lang.NullPointerException
> with jsp's and html's. Is there anything different that needs to be done
> when
> forward to something other than a servlet.
>
> Any suggestions would be greatly appreciated.
>
> Thanks,
>
> Dave
>
> *******************Internet Email Confidentiality
> Footer*******************
>
>
> Privileged/Confidential Information may be contained in this message. If
> you
> are not the addressee indicated in this message (or responsible for
> delivery of
> the message to such person), you may not copy or deliver this message to
> anyone.
> In such case, you should destroy this message and kindly notify the sender
> by
> reply email. Please advise immediately if you or your employer do not
> consent to
> Internet email for messages of this kind. Opinions, conclusions and other
> information in this message that do not relate to the official business of
> my
> firm shall be understood as neither given nor endorsed by it.
>
*******************Internet Email Confidentiality Footer*******************
Privileged/Confidential Information may be contained in this message. If you
are not the addressee indicated in this message (or responsible for delivery of
the message to such person), you may not copy or deliver this message to anyone.
In such case, you should destroy this message and kindly notify the sender by
reply email. Please advise immediately if you or your employer do not consent to
Internet email for messages of this kind. Opinions, conclusions and other
information in this message that do not relate to the official business of my
firm shall be understood as neither given nor endorsed by it.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets