• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About Deployment in WEB-INF/

 
Kidd He
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are the classes under the myapp/WEB-INF/lib in a jar the same with in the myapp/WEB-INF/classes?
I mean can a class(it maybe in a jar) in the root of the myapp/ call the classes in the myapp/WEB-INF/lib or myapp/WEB-INF/classes?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, they are all added to the classpath.
 
Kidd He
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bear Bibeault:
Yes, they are all added to the classpath.


Thanks~~But How can a class in the root of the myapp/ import a classes in myapp/WEB-INF/classes or /lib?
Is the following right?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It doesn't matter where the files are deployed. Just be sure that they are in the build-time classpath, and you can import them.
[ January 13, 2007: Message edited by: Bear Bibeault ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic