Re: servlet question

2004-08-15 Thread Bill Barker
[mailto:[EMAIL PROTECTED] Sent: Saturday, August 14, 2004 1:05 PM To: Tomcat Users List Subject: re: servlet question Hey all! I have a servlet called login. I have it mapped in my web.xml as follows: servlet servlet-namelogin/servlet-name servlet-classorg.volume4

re: servlet question

2004-08-14 Thread Schalk Neethling
Hey all! I have a servlet called login. I have it mapped in my web.xml as follows: servlet servlet-namelogin/servlet-name servlet-classorg.volume4.authentication.login/servlet-class /servlet servlet-mapping servlet-namelogin/servlet-name url-pattern*.login/url-pattern /servlet-mapping

RE: servlet question

2004-08-14 Thread David Short
in apache wasn't right. However, if you're not using apache, I don't know what to say. The syntax looks correct. -Original Message- From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: Saturday, August 14, 2004 1:05 PM To: Tomcat Users List Subject: re: servlet question Hey all! I have

Re: servlet question

2004-08-14 Thread Schalk Neethling
: servlet question Hey all! I have a servlet called login. I have it mapped in my web.xml as follows: servlet servlet-namelogin/servlet-name servlet-classorg.volume4.authentication.login/servlet-class /servlet servlet-mapping servlet-namelogin/servlet-name url-pattern*.login/url-pattern

Re: servlet question

2004-08-14 Thread Schalk Neethling
and discovered that my pattern in apache wasn't right. However, if you're not using apache, I don't know what to say. The syntax looks correct. -Original Message- From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: Saturday, August 14, 2004 1:05 PM To: Tomcat Users List Subject: re: servlet

Re: servlet question

2004-08-14 Thread Schalk Neethling
14, 2004 1:05 PM To: Tomcat Users List Subject: re: servlet question Hey all! I have a servlet called login. I have it mapped in my web.xml as follows: servlet servlet-namelogin/servlet-name servlet-classorg.volume4.authentication.login/servlet-class /servlet servlet-mapping servlet

RE: servlet question

2004-08-14 Thread David Short
Does the servlet load at startup? -Original Message- From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: Saturday, August 14, 2004 1:19 PM To: Tomcat Users List Subject: Re: servlet question Directly on Tomcat David Short wrote: Are you running this through apache redirected

RE: servlet question

2004-08-14 Thread David Short
Neethling [mailto:[EMAIL PROTECTED] Sent: Saturday, August 14, 2004 1:22 PM To: Tomcat Users List Subject: Re: servlet question Attached is the servlet, can you see any problems here? It compiles fine. David Short wrote: Are you running this through apache redirected to tomcat or straight from

Re: servlet question

2004-08-14 Thread Schalk Neethling
\localhost\context.xml file (tomcat 5). Which version of tomcat are you running and on what os? -Original Message- From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: Saturday, August 14, 2004 1:22 PM To: Tomcat Users List Subject: Re: servlet question Attached is the servlet, can you see any

Re: servlet question

2004-08-14 Thread Schalk Neethling
running and on what os? -Original Message- From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: Saturday, August 14, 2004 1:22 PM To: Tomcat Users List Subject: Re: servlet question Attached is the servlet, can you see any problems here? It compiles fine. David Short wrote: Are you running

RE: servlet question

2004-08-14 Thread David Short
Is your context path set up correctly in your servlet.xml or tomcat\conf\catalina\localhost\context.xml file for this webapp? -Original Message- From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: Saturday, August 14, 2004 1:30 PM To: Tomcat Users List Subject: Re: servlet question I

Re: servlet question

2004-08-14 Thread Schalk Neethling
\localhost\context.xml file (tomcat 5). Which version of tomcat are you running and on what os? -Original Message- From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: Saturday, August 14, 2004 1:22 PM To: Tomcat Users List Subject: Re: servlet question Attached is the servlet, can you see

RE: servlet question

2004-08-14 Thread David Short
Neethling [mailto:[EMAIL PROTECTED] Sent: Saturday, August 14, 2004 1:45 PM To: Tomcat Users List Subject: Re: servlet question In 'tomcat\conf\catalina\localhost\' there is no context.xml file but there is a manageit.xml file, which is the webapp in question. server.xml does not contain any

Re: servlet question

2004-08-14 Thread Ernesto Echeverría
? Regards. José Ernesto Echeverría -Original Message- From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: Sábado, 14 de Agosto de 2004 02:22 p.m. To: Tomcat Users List Subject: [tomcat] Re: servlet question Attached is the servlet, can you see any problems here? It compiles fine. David

RE: servlet question

2003-09-22 Thread Shapira, Yoav
, September 21, 2003 8:48 AM To: Tomcat Users List Subject: Re: servlet question In order to compile servlets with javac, you will need to include all of the jar files found in ...common/lib in your classpath. Tomcat will include them automatically when it starts up for running the servlets but you

Re: servlet question

2003-09-21 Thread Bruno Costacurta
It seems you miss J2EE. After installation (from www.java.sun.com/j2ee) you should find j2ee.jar (under $J2EE_HOME/lib/) which contain javax.servlet.* Hope it helps. On Saturday 20 September 2003 17:45, water autumn wrote: hello: My environment is follow: JDK :

Re: servlet question

2003-09-21 Thread BAO RuiXian
Bruno Costacurta wrote: It seems you miss J2EE. After installation (from www.java.sun.com/j2ee) you should find j2ee.jar (under $J2EE_HOME/lib/) which contain javax.servlet.* Hope it helps. Maybe. But, there should also be a servlet.jar in %TOMCATHOME%/common/lib directory. At least I have

Re: servlet question

2003-09-21 Thread Bruno Costacurta
Indeed. There is a servlet-api.jar under $TOMCAT_HOME/common/lib/ My Tomcat version is 5.0.0 On Sunday 21 September 2003 11:42, BAO RuiXian wrote: Bruno Costacurta wrote: It seems you miss J2EE. After installation (from www.java.sun.com/j2ee) you should find j2ee.jar (under

Re: servlet question

2003-09-21 Thread Ben Souther
In order to compile servlets with javac, you will need to include all of the jar files found in ...common/lib in your classpath. Tomcat will include them automatically when it starts up for running the servlets but you will need to do set up your environment manually in order to compile with

Re: servlet question

2003-05-27 Thread Emerson Cargnin
for what you want to change the request method. I usally call doGet from doPost, so i do everything in the get method Paul Hsu wrote: Hi, I try to forward a HTTP request from my servlet. I am using the following code. RequestDispatcher rd =

Re: servlet question

2003-05-27 Thread Paul Hsu
Thank you for the help. I think you may misunderstand my question. My question is how can I forward the request to my next URL and change the method to 'GET' if the orignal request is using 'POST'. For example: test1.html call servlet1 by using POST method, but servlet1 need to forward to

RE: servlet question

2003-05-27 Thread Tam, Michael
Just a wild guess, how about servlet 1 doPost() call its own doGet() and redirect in the doGet body??? -Original Message- From: Paul Hsu [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 3:41 PM To: Tomcat Users List Subject: Re: servlet question Thank you for the help. I think you

Re: servlet question

2003-05-27 Thread Hassan
if your dispatched request is getting problems because of non compatible types of GET/Post methods at collaborating servlets then at the receiving end add a dummy method of (Get or Post), whichever is missing, and forward the processing to the actual method. For example: protected void

Re: servlet question

2003-05-27 Thread Paul Hsu
: Tuesday, May 27, 2003 3:45 PM Subject: Re: servlet question if your dispatched request is getting problems because of non compatible types of GET/Post methods at collaborating servlets then at the receiving end add a dummy method of (Get or Post), whichever is missing, and forward

Re: servlet question

2003-05-27 Thread Paul Hsu
: servlet question Just a wild guess, how about servlet 1 doPost() call its own doGet() and redirect in the doGet body??? -Original Message- From: Paul Hsu [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 3:41 PM To: Tomcat Users List Subject: Re: servlet question Thank you for the help

RE: servlet question

2003-05-27 Thread Tam, Michael
Subject: RE: servlet question Just a wild guess, how about servlet 1 doPost() call its own doGet() and redirect in the doGet body??? -Original Message- From: Paul Hsu [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 3:41 PM To: Tomcat Users List Subject: Re: servlet question Thank

Re: servlet question

2003-05-27 Thread Paul Hsu
Michael, If I forward to a servlet, yes I can process the request in second servlet. - Original Message - From: Tam, Michael [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 4:13 PM Subject: RE: servlet question I am not possitive. I am

RE: servlet question

2003-05-27 Thread Tam, Michael
I wonder would this solve your problem?? -Original Message- From: Paul Hsu [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 4:32 PM To: Tomcat Users List Subject: Re: servlet question Michael, If I forward to a servlet, yes I can process the request in second servlet

Re: servlet question

2003-05-27 Thread Paul Yunusov
On Tuesday 27 May 2003 06:26 pm, Paul Hsu wrote: Hi, I try to forward a HTTP request from my servlet. I am using the following code. RequestDispatcher rd = getServletContext().getRequestDispatcher(direct); rd.forward(request, response); I have no problem with code,

Re: servlet question

2003-05-27 Thread Bill Barker
You need to wrap the request with a wrapper that overrides the getMethod() method. Something like: class GetWrapper extends HttpServletRequestWrapper { public GetWrapper(HttpServletRequest request) { super(request); } public String getMethod() { return GET;

Re: Servlet question

2001-03-23 Thread Craig R. McClanahan
On Fri, 23 Mar 2001, c cw288 wrote: Hi, When a client make a request to a server and a servlet get call, the servlet then create an instance for that client. That is not what really happens. Instead, a single instance of your servlet is called multiple times simultaneously, on multiple