snehansh konda wrote:Hi I am a Servlets and JSP newbie and I am getting a similar error. I am doing the sample program (Chapter 3) in HFSJ 2nd edition but I am using Java 6 and Tomcat 7 for learning JEE 6. I was able to complete the first two versions of the app but I am getting the error when I am trying to run the app using JSP.
The error is as given below:
type Status report
description The requested resource (/Beer-v1/result.jsp) is not available.
This app is running when I replace the "result.jsp" as given in the book with a "hello.jsp" given in one of the examples provided in TOMCAT.
The environment variables set in my system are JAVA_HOME, CATALINA_HOME.
I have set the java path as well in CLASSPATH and PATH.
Also, I am typing the JSP code in notepad and saving it. Not using any editor till now.
Just to summarize my Tomcat page is opening normally after startup but when I try to redirect a servlet to a JSP I get the error that the JSP file is not available. When I replace this JSP with another one provided in the Example given by TOMCAT the entire app seems to work properly.
I have seen the previous posts and followed the steps accordingly but I am still getting the error.
Please suggest what steps are to be taken to solve this problem.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton