jQuery in Action, 3rd edition
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: 13035
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 agree. Here's the link: http://aspose.com/file-tools
subject: help, please: how to run jsp
It's not a secret anymore!