aspose file tools
The moose likes JSP and the fly likes Forward to JSP outside of war Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Forward to JSP outside of war" Watch "Forward to JSP outside of war" New topic
Author

Forward to JSP outside of war

Marshall B Thompson
Ranch Hand

Joined: Apr 11, 2002
Posts: 42
I have a servlet in a deployed .war file on Sun Java System Web Server 6.1. I have a JSP that is not deployed in any .war file. How do I forward from the servlet to the JSP. I can't figure out how to obtain a context to the jsp pages in the default webapp which are outside of a .war file.

I see that the jsp .class files are in /opt/sun/web/https-c3qweb1/ClassCache/https-c3qweb1/default-webapp where https-c3qweb1 is the name of our virtual server. There is not an explicit WEBAPP entry for the default webapp in server.xml.

Is it possible to obtain the context of these jsps which are outside of .war files?
Marshall B Thompson
Ranch Hand

Joined: Apr 11, 2002
Posts: 42
I got this to work by doing the following:
 
Don't get me started about those stupid light bulbs.
 
subject: Forward to JSP outside of war