The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

Re: Help with JSP and Tomcat

You can put your JSP's in the WEB-INF, in fact I do it all the time, because I want to hide the raw JSP from the outside world. Anything inside WEB-INF will be hidden and any user going to your server will not be able to reach the files in there directly. If you just want your sample JSP to run, place it in the correct path as described by vinotht, but if you still want it to remain inside the WEB-INF folder you will need to create a separate servlet, map that to some url or all urls and then use a request dispatcher to forward the user to the JSP inside the WEB-INF folder.