This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes help, please:  how to run jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Bookmark "help, please:  how to run jsp" Watch "help, please:  how to run jsp" New topic

help, please: how to run jsp

Weigang Gu
Ranch Hand

Joined: Jan 16, 2001
Posts: 44
Hi, folks:
I installed Apache server and Tomcat3.2.1 on my computer. I have one problem and I wish you can help me out.
I wrote a myjsp.jsp program which uses some bean component, myBean.class, and servlet, myservlet. I tried to run it without success. I think the problem is I did not put them in the right dir. Could anyone please tell me where I should put these files to start myjsp.jsp?
thanks in advance
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13000
All classes used by your application have to be in directories under the WEB-INF directory.
class files belong under WEB-INF/classes and jar files belong under WEB-INF/lib
The JSP file of course belongs with the HTML files.
If you put your jsp file in the tomcat\webapps\ROOT directory then the classes would go in:

author of:
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: help, please: how to run jsp
It's not a secret anymore!