I am using JRun 4 on Solaris.
I have my test servlet class under
/<jrun server folder>/<appname>/WEB-INF/test.class
and my test JSP under
<jrun server folder>/<appname>/test.jsp
If I use the URL http://<myserver:port>/<appname>/test.jsp from the browser everything works fine. But if I try to foward the request from my test servlet to the test jsp I get the error: resource not found.
My servlet code is like
RequestDispatcher rd =
getServletContext().getRequestDispatcher("/test.jsp");
rd.forward(req,res);
I did not change anything in the jrun-web.xml. I assume by defualt the context-root will be <jrun server folder>/<appname>
I tried to get the realpath of "/" from my servlet context using
getServletContext().getRealPath()
It returns me /<jrun server folder>/web which is the document root configured in my web server. All requests for the url http://<servername:port>/* are serverd from this folder.
Let me what is the problem or if I am missing something.
Any help will be greatly appreciated.
Thanks
Sundar
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
