Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to get webserver path  RSS feed

 
seetharama sarma
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear friends,
I need to know how can get the path where my webserver is installed in bean. If i am in JSP i can get with application.getRealPath(). But how to get that path in a javabean.
Thnaks in advance.
[ May 23, 2003: Message edited by: seetharam sarma ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66144
143
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to pass a context to the bean so that it has a hook back into the web app. I believe that either an HttpServletRequest instance or the ServletContext will serve your needs.
hth,
bear
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!