Re: Traversing up a directory using RequestDispatcher

2004-09-17 Thread John Villar
if you're forwarding from the ChargeCard directory, you just have to include only the name of the page in the forward directive (e.g. something.jsp or ./something.jsp) the trailing backslash is directly referring the root context of this host John Villar Gerente de Proyectos Computadores

RE: Traversing up a directory using RequestDispatcher

2004-09-17 Thread Shapira, Yoav
Hi, First of all, Xeth is the best name I've seen in a long time -- cool! I have a bizarre issue. Using Tomcat 5.0.12, I have an application in the directory C:\jakarta-tomcat-5.0.12\webapps called ChargeCard. After loggin in, I am trying to forward a request to jsp page in that directory.

RE: Traversing up a directory using RequestDispatcher

2004-09-17 Thread Allistair Crossley
shame about the surname lol (sorry xeth just kidding) ADC -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 17 September 2004 13:17 To: Tomcat Users List; Xeth Waxman Subject: RE: Traversing up a directory using RequestDispatcher Hi, First of all, Xeth

[OFF-TOPIC] Re: Traversing up a directory using RequestDispatcher

2004-09-17 Thread John Villar
-Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 17 September 2004 13:17 To: Tomcat Users List; Xeth Waxman Subject: RE: Traversing up a directory using RequestDispatcher Hi, First of all, Xeth is the best name I've seen in a long time -- cool! I have a bizarre

Re: Traversing up a directory using RequestDispatcher

2004-09-17 Thread Xeth Waxman
OK, so apparently I am doing a cross context request dispatcher call, which is bad. So I shouldn't do that. Assuming my app is under c:\jakarta\webapps\ChargeCard (context is /ChargeCard), that means my servlets should be under c:\jakarta\webapps\ChargeCard\WEB-INF\classes, correct? If that is

Re: Traversing up a directory using RequestDispatcher

2004-09-17 Thread John Villar
You have to enable the invoker servlet, this question comes up *A LOT* in this mailing list xeth try the better, cleaner, securer way do a servlet mapping in your web.xml file John Villar Gerente de Proyectos Computadores Flor Hard Soft 2058 C.A. www.florhard.com Xeth Waxman

Re: Traversing up a directory using RequestDispatcher

2004-09-17 Thread Xeth Waxman
] Sent: Friday, September 17, 2004 11:25 AM To: Shapira, Yoav Cc: Tomcat Users List Subject: Re: Traversing up a directory using RequestDispatcher OK, so apparently I am doing a cross context request dispatcher call, which is bad. So I shouldn't do that. Assuming my app is under c:\jakarta

RE: Traversing up a directory using RequestDispatcher

2004-09-17 Thread Shapira, Yoav
Hi, login.jsp in CATALINA_HOME/webapps/ChargeCard (let's call it APP_HOME). I have moved my servlets from CATALINA_HOME/webapps/ROOT/WEB-INF/classes to APP_HOME/WEB-INF/classes. So my question is twofold: 1) from my jsp, how do I invoke the servlet in it's new location? Prior I was using:

Re: Traversing up a directory using RequestDispatcher

2004-09-17 Thread Xeth Waxman
Worked perfectly - tomcat users get soup :) On Fri, 17 Sep 2004 11:52:48 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, login.jsp in CATALINA_HOME/webapps/ChargeCard (let's call it APP_HOME). I have moved my servlets from CATALINA_HOME/webapps/ROOT/WEB-INF/classes to

Traversing up a directory using RequestDispatcher

2004-09-16 Thread Xeth Waxman
I have a bizarre issue. Using Tomcat 5.0.12, I have an application in the directory C:\jakarta-tomcat-5.0.12\webapps called ChargeCard. After loggin in, I am trying to forward a request to jsp page in that directory. However, RequestDispatcher apparently uses the directory