Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Finding the appBase?  RSS feed

 
Andrei Hager
Greenhorn
Posts: 10
  • 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
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!