I have the following in my server.xml: <Service name="Tomcat-prototype-first_webapp"> <Connector className="org.apache.catalina.connector.http.HttpConnector" port="7001" redirectPort="8001" minProcessors="5" maxProcessors="75" enableLookups="true" acceptCount="10" debug="0" connectionTimeout="60000"/> <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8001" minProcessors="5" maxProcessors="75" enableLookups="true" acceptCount="100" debug="0" scheme="https" secure="true" useURIValidationHack="false" disableUploadTimeout="true"> <Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory" clientAuth="false" protocol="TLS"/> </Connector> <Engine name="prototype-first_webapp" defaultHost="prototype-first_webapp" debug="0"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log." suffix=".txt" timestamp="true"/> <Realm className="org.apache.catalina.realm.MemoryRealm"/> <Host name="prototype-first_webapp" debug="0" appBase="webapps/prototype/first_webapp" unpackWARs="false"> <alias>kcobb_tyan</alias> <Context docBase="." path="" priveleged="false" reloadable="true" crossContext="true"/> <Context docBase="../second_webapp" path="/second_webapp" priveleged="false" reloadable="true" crossContext="true"/> </Host> </Engine> </Service>
I have the following in my sender servlet (notice the other commented-out attempts): //super.doPost(request, response); //To change body of overridden methods use File | Settings | File Templates. //ServletContext myContext = getServletContext(); // //ServletContext theirContext = myContext.getContext("/second_webapp"); //System.out.println("Context=" + theirContext); // //RequestDispatcher dispatcher = theirContext.getRequestDispatcher("/second_webapp/backdoor.jsp"); //System.out.println("Dispatcher=" + theirContext); // //dispatcher = theirContext.getRequestDispatcher("/backdoor.jsp"); //System.out.println("Dispatcher=" + theirContext); // //dispatcher.forward(request, response); // //RequestDispatcher rd = this.getServletConfig().getServletContext().getRequestDispatcher("/second_webapp/backdoor.jsp"); //System.out.println("rd=" + rd); // // //ServletContext context = this.getServletConfig().getServletContext(); //rd = context.getContext("/second_webapp").getRequestDispatcher("/backdoor.jsp"); //System.out.println("rd=" + rd); // //rd.forward(request, response); //ServletContext myContext = getServletContext(); // //RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/second_webapp/backdoor.jsp"); //System.out.println("Dispatcher=" + dispatcher); // //dispatcher.forward(request, response); ServletContext myContext = getServletContext(); RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/second_webapp/backdoor.jsp"); System.out.println("Dispatcher=" + dispatcher); dispatcher.forward(request, response); The theirContext and the dispatcher objects are NOT null, but I continue to get: /second_webapp/backdoor.jsp Which is where I want to go. If I enter that manually (http://localhost:7001/second_webapp/index.jsp), I get the desired output. Can anyone help? ===== Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __________________________________ Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]