[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
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
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
: 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
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
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
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
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
\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
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
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
\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
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
?
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
, 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
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 :
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
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
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
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 =
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
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
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
: 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
: 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
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
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
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
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,
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;
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
31 matches
Mail list logo