• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

help, please: how to run jsp

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
 
reply
    Bookmark Topic Watch Topic
  • New Topic