Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Finding the appBase?

 
Andrei Hager
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is really an attempt to solve the same underlying need as this thread, but it seems worth it's own answer if I can get it.

From within a JSP file, I need to find out what the appBase property is of the current <Host>. Can I always just go down up one directory from the current Context? (I doubt it.)
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64185
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Andrei Hager:
Can I always just go down up one directory from the current Context? (I doubt it.)
No. Nothing says the context root needs to be relative to the host root.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic