This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: My jsp file is not displayed - tomcat does not pick up the class file
 
Similar Threads
Issue with getting Message from properties file in Controller, but works in JSP
InternalResourceViewResolver failing JUnit test -- Spring Demo Source
Spring MVC Issue: Passing data to view
Not able to run basic spring mvc example? -- Resource not found
Spring MVC+iBATIS simple Login App Problem