| Author |
How complex can the servlet context be in a Web App?
|
Sharad Agarwal
Ranch Hand
Joined: Sep 11, 2002
Posts: 167
|
|
Hi folks, I want to deploy a web application and set the servlet context as: AAA/BBB. Put more simply, my application should be accessible via the following: http:localhost:7001/AAA/BBB/main.jsp One work around is to set the context: weblogic.httpd.webApp.AAA=WebAppLocation And in the deployment descriptor (web.xml) to register all servlets with a BBB/ prepended to the desired alias: <servlet-mapping> <servlet-name>main</servlet-name> <url-pattern>BBB/main.jsp</url-pattern> </servlet-mapping> But this solution does not work for me. Parts of the application refer the context root (AAA) and create URLs relative to that. These URLs will not have the BBB part. Searching for it in the code and replacing it is not desirable (we do not own the code). Does anyone have any suggestions? Thanks in advance, Sharad
|
 |
Sharad Agarwal
Ranch Hand
Joined: Sep 11, 2002
Posts: 167
|
|
|
By the way, we are using Weblogic 5.1 and the path weblogic.httpd.webApp.AAA=WebAppLocation is being specified in the weblogic.properties file for the web app.
|
 |
 |
|
|
subject: How complex can the servlet context be in a Web App?
|
|
|