| How to get install folder of the application? [message #1059708] |
Tue, 21 May 2013 06:09  |
Yury Mising name Messages: 66 Registered: May 2010 Location: Russia |
Member |
|
|
I need to get the folder which the application was installed in.
Only one way which I know is to get ServletContext from any HttpServlet and request current path:
ServletContext.getRealPath("/")
For Tomcat it returns "tomcat_dir\webapps\app_name\" folder.
The additional problem is no active user sessions yet - plugins of the application just were loaded by osgi.
Best regards,
Yury.
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.14618 seconds