wood burning stoves 2.0*
The moose likes JSP and the fly likes My jsp file is not displayed - tomcat does not pick up the class file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "My jsp file is not displayed - tomcat does not pick up the class file" Watch "My jsp file is not displayed - tomcat does not pick up the class file" New topic
Author

My jsp file is not displayed - tomcat does not pick up the class file

R Naijat
Ranch Hand

Joined: Nov 01, 2011
Posts: 40
Hi everybody,
I have a Java code which is a controller for a jsp page, called: HomeController.java. Code is as follows:



There is nothing especial in the jsp page: home.jsp. If I go to this url:

http://localhost:8080/adcopyqueue/mypage

I can view mypage and everything works fine. Also in the tomcat Dos page I can see the comment:



As expected.

Now under the same directory that I have HomeController.java, I've created another file called: LoginController.java. Following is the code:



And under the same place which I have home.jsp, I've created login.jsp.

Also under tomcat folders, LoginController.class exists under the same folder that HomeController.class exists and login.jsp exists under the same folder which home.jsp exists.

But when I go to this url: http://localhost:8080/adcopyqueue/loginpage

Nothing is displayed! I think tomcat does not pick up LoginController.class b/c on the tomcat Dos window, I do NOT see this comment:



Instead I see following which I do not know what do they mean?



The structure and the code for HomeController.java and LoginController.java plus the jsp files match. I have no idea why tomcat sees one of the files and not the other?

Clean build did not help. Does anybody have any idea? Any help is greatly appreciated.
 
wood burning stoves
 
subject: My jsp file is not displayed - tomcat does not pick up the class file