tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jarecsni János <jarec...@freemail.hu>
Subject RE: Context problem, urgent!
Date Wed, 29 Jan 2003 13:29:41 GMT
Hi,

To set an application to be in the root context, use:

<Context path="" docBase="ROOT" debug="0" reloadable="true"
crossContext="true"/>

BTW: I don't know if you can nest <Context>s.

Cheers,
János

| -----Original Message-----
| From: Peng Annie / FINLAND [mailto:Annie.peng@kone.com] 
| Sent: Wednesday, January 29, 2003 2:00 PM
| To: 'tomcat-user@jakarta.apache.org'
| Subject: Context problem, urgent!
| 
| 
| 
| Hi,
| 
| In Tomcat4, I can not get the right context of other webapp 
| from my app. My app is set as the doc root. For example I 
| have configuration  like 
| 
| <Context path="" docBase="MyApp" debug="0" reloadable="true" 
| crossContext="true"/> <Context path="/OtherApp" 
| docBase="OtherApp" debug="0" reloadable="true" crossContext="true"/>
| 
| in server.xml. But the difference from in Tomcat3.2 is, when 
| I user the following statement in my servlet:
| 
|         ServletContext sc = 
| this.getServletConfig().getServletContext().getContext("/OtherApp");
|  
| sc.getRequestDispatcher("/servlet/ControllerServlet").forward(request,
| response);
| 
| Tomcat can not find the "OtherApp" context!
| 
| Can anybody help? This is really urgent!
| 
| Many thanks in advance!
| 
| Annie
| 
| 
| 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message