Hi,
How many types of configuration files are there for a webapplication and what r they?
Can we access the Servlet Context of pne Application from another?
thanks & regards
Santhosh
-
Configuration files (3 messages)
- Posted by: Santhosh Muktha
- Posted on: April 22 2004 02:56 EDT
Threaded Messages (3)
- Configuration files by Senthil Chinnaiyan on April 22 2004 09:41 EDT
- Configuration files by Paul Strack on April 22 2004 10:44 EDT
- Configuration files by Senthil Chinnaiyan on April 22 2004 11:54 EDT
- Configuration files by Paul Strack on April 22 2004 10:44 EDT
-
Configuration files[ Go to top ]
- Posted by: Senthil Chinnaiyan
- Posted on: April 22 2004 09:41 EDT
- in response to Santhosh Muktha
web.xml only. If you use any framework, you need to have the framework specific files.
I don't think you can access another web application's servlet context, because ServletConfig.getServletContext() method will return the current web applications context only. -
Configuration files[ Go to top ]
- Posted by: Paul Strack
- Posted on: April 22 2004 10:44 EDT
- in response to Senthil Chinnaiyan
Actually, you can access another ServletContext, by using the getContext() method of the current Servlet Context, and the context path of the other web application:
String other_context_path = ...
ServletContext thisContext = getServletContext();
ServletContext otherContext = thisContext.getContext(other_context_path); -
Configuration files[ Go to top ]
- Posted by: Senthil Chinnaiyan
- Posted on: April 22 2004 11:54 EDT
- in response to Paul Strack
Thanks, I didn't know that before.