Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

where to place beans for jsp:useBean

 
Cameron Park
Ranch Hand
Posts: 371
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I don't know where to place beans for jsp:useBean. Do I put the bean classes in the same directory as the jsp files?
Thanks.
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Cameron Park:
Hi, I don't know where to place beans for jsp:useBean.

Ah, another day has gone by I see. Just on time. You put your class files under WEB-INF/classes, and your jars in WEB-INF/lib. You really wonder why this is never mentioned anywhere.
- Peter
 
anshu_bhatia
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put the classes in web-inf\classes directory if you are suing Jrun. If tomcat I don't know, Sorry.
I hope this helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic