File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes where to put JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "where to put JSP" Watch "where to put JSP" New topic

where to put JSP

sandeep kumar jangra

Joined: Jan 12, 2005
Posts: 29
hi everybody, I m new to jsp and tomcat. when i store my application in examples folder in tomcat webapps then everything works fine but when i put it in webapps folder it gives error 404. Where shud I put my application. do I need to do anything so that my files run from webapps.
kindly help and tell full procedure
thanx in advance
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

Since this is a Tomcat setup issue, moving to the Tomcat forum.

[Asking smart questions] [About Bear] [Books by Bear]
Tim Baker
Ranch Hand

Joined: Oct 04, 2003
Posts: 541
Well, the jsp-examples folder is a context. if you want them in another folder, you create another context. so read a tomcat tutorial on how to create contexts in your tomcat configs. If you want them to just show up in the root of your server ie http://localhost:8080/my.jsp then you can just put them in the ROOT folder and you can safely delete whats already in there. Thats proably the easiest solution

Kim Jong II (North Korea's Dear Leader) said:Nuclear weapons don't kill people, people kill people.
I agree. Here's the link:
subject: where to put JSP
It's not a secret anymore!