Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
R Naijat
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!