• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help, please: how to run jsp

 
Weigang Gu
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
tomcat\webapps\ROOT\WEB-INF\classes
Bill

------------------
author of:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic