Wow! Thanks, that's it. I started without that, but added it when I was having problems.

Thanks again!

Wendy Smoak wrote:

On 1/8/06, Thom Hehl <[EMAIL PROTECTED]> wrote:

       String url = "/visioneer/HomeSearch.jsp";
       RequestDispatcher dispatcher =
               getServletContext().getRequestDispatcher(url);
       dispatcher.forward(request, response);

And I now get this error:

*type* Status report

*message* _/visioneer/HomeSearch.jsp_

In general, you should not be hard-coding the name of the context in your app.

http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/ServletContext.html#getRequestDispatcher(java.lang.String)

"The pathname must begin with a "/" and is interpreted as relative to
the current context root."

So leave off the 'visioneer' part, (which is the context name,) start
with / and then give the path to the resource, depending on where you
moved it to.

HTH,
--
Wendy

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




Thom Hehl
Heavyweight Software for Heavyweight Needs
www.heavyweightsoftware.com
--
"In every revolution, there is one man with a vision."--Jerome Bixby



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

Reply via email to