Re: servlet question

2004-08-15 Thread Bill Barker
Well, you could try adding in your exception handling:
} catch(Exception e) {
   log(Problem,e);
   // For pre-production debugging only
   throw new ServletException(Problem,e);
}

The way you servlet is at the moment, if you do get an exception, then all
you will see is a blank page with nothing in the logs.

Schalk Neethling [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Attached is my servlet and complete web.xml

 David Short wrote:

 I don't think the servlet is the issue, since it's not even getting
 executed.  Is your context path set up correctly in your servlet.xml or
 tomcat\conf\catalina\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 problems here? It compiles fine.
 
 David Short wrote:
 
 
 
 Are you running this through apache redirected to tomcat or straight
from
 tomcat?
 
 Try loading the servlet at tomcat startup to see if the servlet is
 recognized.
 
 i.e. load-on-startup1/load-on-startup
 
 last in the servlet/servlet tag set.
 
 I had the same issue 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 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
 /servlet-mapping
 
 My WEB-INF structure is as follows
 
 WEB-INF/classes/org/volume4/authentication/login.class
 
 Does anyone have an idea as to why when I call login as process.login
 
 
 from a form it is not run? I have placed some System.out.println(); in
 
 
 there but, it seems that the servlet is not called at all. I basically
 just get a blank screen. When I look at the tomcat logs no errors are
 recorded here either.
 
 --
 Kind Regards
 Schalk Neethling
 Web Developer.Designer.Programmer.President
 Volume4.Development.Multimedia.Branding
 emotionalize.conceptualize.visualize.realize
 Tel: +27125468436
 Fax: +27125468436
 email:[EMAIL PROTECTED]
 web: www.volume4.co.za
 
 This message contains information that is considered to be sensitive or
 confidential and may not be forwarded or disclosed to any other party
 without the permission of the sender. If you received this message in
 
 
 error,
 
 
 please notify me immediately so that I can correct and delete the
original
 email. Thank you.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 --
 Kind Regards
 Schalk Neethling
 Web Developer.Designer.Programmer.President
 Volume4.Development.Multimedia.Branding
 emotionalize.conceptualize.visualize.realize
 Tel: +27125468436
 Fax: +27125468436
 email:[EMAIL PROTECTED]
 web: www.volume4.co.za
 
 This message contains information that is considered to be sensitive or
 confidential and may not be forwarded or disclosed to any other party
 without the permission of the sender. If you received this message in
error,
 please notify me immediately so that I can correct and delete the
original
 email. Thank you.
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 -- 
 Kind Regards
 Schalk Neethling
 Web Developer.Designer.Programmer.President
 Volume4.Development.Multimedia.Branding
 emotionalize.conceptualize.visualize.realize
 Tel: +27125468436
 Fax: +27125468436
 email:[EMAIL PROTECTED]
 web: www.volume4.co.za

 This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.








 /*
  * login.java
  *
  * Created on January 18, 2004, 9:47 PM
  */

 package org.volume4.authentication;

 import java.io.*;
 import java.util.*;
 import java.net.*;
 import java.sql.*;
 import javax.servlet.*;
 import javax.servlet.http.*;

 /**
  *
  * @author  Design_DEMON
  * @version

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
My WEB-INF structure is as follows
WEB-INF/classes/org/volume4/authentication/login.class
Does anyone have an idea as to why when I call login as process.login 
from a form it is not run? I have placed some System.out.println(); in 
there but, it seems that the servlet is not called at all. I basically 
just get a blank screen. When I look at the tomcat logs no errors are 
recorded here either.

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
This message contains information that is considered to be sensitive or confidential 
and may not be forwarded or disclosed to any other party without the permission of the 
sender. If you received this message in error, please notify me immediately so that I 
can correct and delete the original email. Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: servlet question

2004-08-14 Thread David Short
Are you running this through apache redirected to tomcat or straight from
tomcat?

Try loading the servlet at tomcat startup to see if the servlet is
recognized.

i.e. load-on-startup1/load-on-startup

last in the servlet/servlet tag set.

I had the same issue 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 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
/servlet-mapping

My WEB-INF structure is as follows

WEB-INF/classes/org/volume4/authentication/login.class

Does anyone have an idea as to why when I call login as process.login
from a form it is not run? I have placed some System.out.println(); in
there but, it seems that the servlet is not called at all. I basically
just get a blank screen. When I look at the tomcat logs no errors are
recorded here either.

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: servlet question

2004-08-14 Thread Schalk Neethling
Directly on Tomcat
David Short wrote:
Are you running this through apache redirected to tomcat or straight from
tomcat?
Try loading the servlet at tomcat startup to see if the servlet is
recognized.
i.e. load-on-startup1/load-on-startup
last in the servlet/servlet tag set.
I had the same issue 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 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
/servlet-mapping
My WEB-INF structure is as follows
WEB-INF/classes/org/volume4/authentication/login.class
Does anyone have an idea as to why when I call login as process.login
from a form it is not run? I have placed some System.out.println(); in
there but, it seems that the servlet is not called at all. I basically
just get a blank screen. When I look at the tomcat logs no errors are
recorded here either.
--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
This message contains information that is considered to be sensitive or confidential 
and may not be forwarded or disclosed to any other party without the permission of the 
sender. If you received this message in error, please notify me immediately so that I 
can correct and delete the original email. Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: servlet question

2004-08-14 Thread Schalk Neethling
localhost:8080
David Short wrote:
Are you running this through apache redirected to tomcat or straight from
tomcat?
Try loading the servlet at tomcat startup to see if the servlet is
recognized.
i.e. load-on-startup1/load-on-startup
last in the servlet/servlet tag set.
I had the same issue 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 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
/servlet-mapping
My WEB-INF structure is as follows
WEB-INF/classes/org/volume4/authentication/login.class
Does anyone have an idea as to why when I call login as process.login
from a form it is not run? I have placed some System.out.println(); in
there but, it seems that the servlet is not called at all. I basically
just get a blank screen. When I look at the tomcat logs no errors are
recorded here either.
--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
This message contains information that is considered to be sensitive or confidential 
and may not be forwarded or disclosed to any other party without the permission of the 
sender. If you received this message in error, please notify me immediately so that I 
can correct and delete the original email. Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: servlet question

2004-08-14 Thread Schalk Neethling
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
tomcat?
Try loading the servlet at tomcat startup to see if the servlet is
recognized.
i.e. load-on-startup1/load-on-startup
last in the servlet/servlet tag set.
I had the same issue 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 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
/servlet-mapping
My WEB-INF structure is as follows
WEB-INF/classes/org/volume4/authentication/login.class
Does anyone have an idea as to why when I call login as process.login
from a form it is not run? I have placed some System.out.println(); in
there but, it seems that the servlet is not called at all. I basically
just get a blank screen. When I look at the tomcat logs no errors are
recorded here either.
--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
This message contains information that is considered to be sensitive or confidential 
and may not be forwarded or disclosed to any other party without the permission of the 
sender. If you received this message in error, please notify me immediately so that I 
can correct and delete the original email. Thank you.
/*
 * login.java
 *
 * Created on January 18, 2004, 9:47 PM
 */

package org.volume4.authentication;

import java.io.*;
import java.util.*;
import java.net.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;

/**
 *
 * @author  Design_DEMON
 * @version
 */
public class login extends HttpServlet {
public String DRIVER, URL, USER, PASS, username, userid, password, user_role;
/** Initializes the servlet.
 */
public void init() throws ServletException {
ServletContext context = getServletContext();
DRIVER = context.getInitParameter(driver);
URL = context.getInitParameter(dburl);
USER = context.getInitParameter(dbuser);
PASS = context.getInitParameter(dbpass);
}
  

/** Processes requests for both HTTP codeGET/code and codePOST/code 
methods.
 * @param request servlet request
 * @param response servlet response
 */
protected void processRequest(HttpServletRequest request, HttpServletResponse 
response)
throws ServletException, java.io.IOException {
response.setContentType(text/html);
PrintWriter out = response.getWriter();
Connection con = null;

try {  
  username = request.getParameter(username);
  userid = request.getParameter(userid);
  password = request.getParameter(password);
  
  System.out.println(username);
  System.out.println(userid);
  System.out.println(password);
  
  Class.forName(DRIVER);
  con = DriverManager.getConnection(URL,USER,PASS);   
  PreparedStatement stmt = con.prepareStatement(
  SELECT * from mi_users WHERE username= ' + username + '  +
  AND userid = ' + userid + '  +
  AND password= ' + password + ');
  
  ResultSet rs = stmt.executeQuery();
  
  boolean foundUser = false;
  
  while(rs.next()) {
  foundUser = true;   
  
  HttpSession session = request.getSession(true);
  session.setMaxInactiveInterval(1800);
  session.setAttribute

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 to tomcat or straight from
tomcat?

Try loading the servlet at tomcat startup to see if the servlet is
recognized.

i.e. load-on-startup1/load-on-startup

last in the servlet/servlet tag set.

I had the same issue 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 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
/servlet-mapping

My WEB-INF structure is as follows

WEB-INF/classes/org/volume4/authentication/login.class

Does anyone have an idea as to why when I call login as process.login
from a form it is not run? I have placed some System.out.println(); in
there but, it seems that the servlet is not called at all. I basically
just get a blank screen. When I look at the tomcat logs no errors are
recorded here either.

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in
error,
please notify me immediately so that I can correct and delete the original
email. Thank you.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: servlet question

2004-08-14 Thread David Short
I don't think the servlet is the issue, since it's not even getting
executed.  Is your context path set up correctly in your servlet.xml or
tomcat\conf\catalina\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 problems here? It compiles fine.

David Short wrote:

Are you running this through apache redirected to tomcat or straight from
tomcat?

Try loading the servlet at tomcat startup to see if the servlet is
recognized.

i.e. load-on-startup1/load-on-startup

last in the servlet/servlet tag set.

I had the same issue 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 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
/servlet-mapping

My WEB-INF structure is as follows

WEB-INF/classes/org/volume4/authentication/login.class

Does anyone have an idea as to why when I call login as process.login
from a form it is not run? I have placed some System.out.println(); in
there but, it seems that the servlet is not called at all. I basically
just get a blank screen. When I look at the tomcat logs no errors are
recorded here either.

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in
error,
please notify me immediately so that I can correct and delete the original
email. Thank you.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: servlet question

2004-08-14 Thread Schalk Neethling
I am running TC 5.0.25 on WindowsXP, my test environment. All other 
servlets are running fine on other webapps.

David Short wrote:
I don't think the servlet is the issue, since it's not even getting
executed.  Is your context path set up correctly in your servlet.xml or
tomcat\conf\catalina\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 problems here? It compiles fine.
David Short wrote:
 

Are you running this through apache redirected to tomcat or straight from
tomcat?
Try loading the servlet at tomcat startup to see if the servlet is
recognized.
i.e. load-on-startup1/load-on-startup
last in the servlet/servlet tag set.
I had the same issue 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 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
/servlet-mapping
My WEB-INF structure is as follows
WEB-INF/classes/org/volume4/authentication/login.class
Does anyone have an idea as to why when I call login as process.login
   

from a form it is not run? I have placed some System.out.println(); in
 

there but, it seems that the servlet is not called at all. I basically
just get a blank screen. When I look at the tomcat logs no errors are
recorded here either.
--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in
   

error,
 

please notify me immediately so that I can correct and delete the original
email. Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

   

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
This message contains information that is considered to be sensitive or confidential 
and may not be forwarded or disclosed to any other party without the permission of the 
sender. If you received this message in error, please notify me immediately so that I 
can correct and delete the original email. Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: servlet question

2004-08-14 Thread Schalk Neethling
Attached is my servlet and complete web.xml
David Short wrote:
I don't think the servlet is the issue, since it's not even getting
executed.  Is your context path set up correctly in your servlet.xml or
tomcat\conf\catalina\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 problems here? It compiles fine.
David Short wrote:
 

Are you running this through apache redirected to tomcat or straight from
tomcat?
Try loading the servlet at tomcat startup to see if the servlet is
recognized.
i.e. load-on-startup1/load-on-startup
last in the servlet/servlet tag set.
I had the same issue 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 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
/servlet-mapping
My WEB-INF structure is as follows
WEB-INF/classes/org/volume4/authentication/login.class
Does anyone have an idea as to why when I call login as process.login
   

from a form it is not run? I have placed some System.out.println(); in
 

there but, it seems that the servlet is not called at all. I basically
just get a blank screen. When I look at the tomcat logs no errors are
recorded here either.
--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in
   

error,
 

please notify me immediately so that I can correct and delete the original
email. Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

   

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
This message contains information that is considered to be sensitive or confidential 
and may not be forwarded or disclosed to any other party without the permission of the 
sender. If you received this message in error, please notify me immediately so that I 
can correct and delete the original email. Thank you.
/*
 * login.java
 *
 * Created on January 18, 2004, 9:47 PM
 */

package org.volume4.authentication;

import java.io.*;
import java.util.*;
import java.net.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;

/**
 *
 * @author  Design_DEMON
 * @version
 */
public class login extends HttpServlet {
public String DRIVER, URL, USER, PASS, username, userid, password, user_role;
/** Initializes the servlet.
 */
public void init() throws ServletException {
ServletContext context = getServletContext();
DRIVER = context.getInitParameter(driver);
URL = context.getInitParameter(dburl);
USER = context.getInitParameter(dbuser);
PASS = context.getInitParameter(dbpass);
}
  

/** Processes requests for both HTTP codeGET/code and codePOST/code 
methods.
 * @param request servlet request
 * @param response servlet response
 */
protected void processRequest(HttpServletRequest

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 am running TC 5.0.25 on WindowsXP, my test environment. All other
servlets are running fine on other webapps.

David Short wrote:

I don't think the servlet is the issue, since it's not even getting
executed.  Is your context path set up correctly in your servlet.xml or
tomcat\conf\catalina\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 problems here? It compiles fine.

David Short wrote:



Are you running this through apache redirected to tomcat or straight from
tomcat?

Try loading the servlet at tomcat startup to see if the servlet is
recognized.

i.e. load-on-startup1/load-on-startup

last in the servlet/servlet tag set.

I had the same issue 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 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
/servlet-mapping

My WEB-INF structure is as follows

WEB-INF/classes/org/volume4/authentication/login.class

Does anyone have an idea as to why when I call login as process.login


from a form it is not run? I have placed some System.out.println(); in


there but, it seems that the servlet is not called at all. I basically
just get a blank screen. When I look at the tomcat logs no errors are
recorded here either.

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in


error,


please notify me immediately so that I can correct and delete the original
email. Thank you.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in
error,
please notify me immediately so that I can correct and delete the original
email. Thank you.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: servlet question

2004-08-14 Thread Schalk Neethling
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 of the other info regarding my other 
webapps which are running fine so I do not think this is where the 
problem lies.

David Short wrote:
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 am running TC 5.0.25 on WindowsXP, my test environment. All other
servlets are running fine on other webapps.
David Short wrote:
 

I don't think the servlet is the issue, since it's not even getting
executed.  Is your context path set up correctly in your servlet.xml or
tomcat\conf\catalina\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 problems here? It compiles fine.
David Short wrote:

   

Are you running this through apache redirected to tomcat or straight from
tomcat?
Try loading the servlet at tomcat startup to see if the servlet is
recognized.
i.e. load-on-startup1/load-on-startup
last in the servlet/servlet tag set.
I had the same issue 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 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
/servlet-mapping
My WEB-INF structure is as follows
WEB-INF/classes/org/volume4/authentication/login.class
Does anyone have an idea as to why when I call login as process.login
 

from a form it is not run? I have placed some System.out.println(); in

   

there but, it seems that the servlet is not called at all. I basically
just get a blank screen. When I look at the tomcat logs no errors are
recorded here either.
--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in
 

error,
   

please notify me immediately so that I can correct and delete the original
email. Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in
   

error,
 

please notify me immediately so that I can correct and delete the original
email. Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

   

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail

RE: servlet question

2004-08-14 Thread David Short
By context.xml I meant your 'context' in question, which in this case is
manageit.  So, the context of your manageit.xml should look something like
this:

Context path=/manageit docBase=manageit debug=0 privileged=true
 reloadable=true crossContext=false

  Logger className=org.apache.catalina.logger.FileLogger
  directory=logs  prefix=localhost_manageit_log. suffix=.txt
  timestamp=true/

/Context

Your URL is something like: localhost:8080\manageit\process.login - correct?

Did you try loading the servlet at tomcat startup?

-Original Message-
From: Schalk 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 of the other info regarding my other
webapps which are running fine so I do not think this is where the
problem lies.


David Short wrote:

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 am running TC 5.0.25 on WindowsXP, my test environment. All other
servlets are running fine on other webapps.

David Short wrote:



I don't think the servlet is the issue, since it's not even getting
executed.  Is your context path set up correctly in your servlet.xml or
tomcat\conf\catalina\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 problems here? It compiles fine.

David Short wrote:





Are you running this through apache redirected to tomcat or straight from
tomcat?

Try loading the servlet at tomcat startup to see if the servlet is
recognized.

i.e. load-on-startup1/load-on-startup

last in the servlet/servlet tag set.

I had the same issue 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 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
/servlet-mapping

My WEB-INF structure is as follows

WEB-INF/classes/org/volume4/authentication/login.class

Does anyone have an idea as to why when I call login as process.login




from a form it is not run? I have placed some System.out.println(); in




there but, it seems that the servlet is not called at all. I basically
just get a blank screen. When I look at the tomcat logs no errors are
recorded here either.

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in




error,




please notify me immediately so that I can correct and delete the
original
email. Thank you.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za

This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in


error,


please notify me immediately so that I can correct and delete the original
email. Thank you.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President

Re: servlet question

2004-08-14 Thread Ernesto Echeverría
I've seen your code, and your configuration... Everything seems fine
(apparently) but then...

I guess the url-pattern*.login/url-pattern means you want to be able to
call that from any address in the context, otherwise you might need to write
/*.login instead for the root of the application context.

What about making things simple first? Are you calling the servlet directly
from a browser or from another servlet? How are you invoking it? Are you
feeding the parameters with specific values? What about putting some
hardcoded text in the System.out.println commands so you can really see if
the servlet is being invoked? Do the servlet-examples of tomcat in your
installation work? Is this a particular servlet not working or the first
servlet in this particular application? What about forwarding to the
login_failed.jsp page also it you catch an exception out of the try-catch
block? 

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 Short wrote:

Are you running this through apache redirected to tomcat or straight 
from tomcat?

Try loading the servlet at tomcat startup to see if the servlet is 
recognized.

i.e. load-on-startup1/load-on-startup

last in the servlet/servlet tag set.

I had the same issue 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 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
/servlet-mapping

My WEB-INF structure is as follows

WEB-INF/classes/org/volume4/authentication/login.class

Does anyone have an idea as to why when I call login as process.login 
from a form it is not run? I have placed some System.out.println(); in 
there but, it seems that the servlet is not called at all. I basically 
just get a blank screen. When I look at the tomcat logs no errors are 
recorded here either.

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za

This message contains information that is considered to be sensitive or 
confidential and may not be forwarded or disclosed to any other party 
without the permission of the sender. If you received this message in 
error, please notify me immediately so that I can correct and delete 
the original email. Thank you.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  


--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: servlet question

2003-09-22 Thread Shapira, Yoav

Howdy,
Whoa, what's going on with this thread? ;)

There's no j2ee.jar with tomcat, there can't and shouldn't be.  Don't
look for it.

You don't need all the classes in commons/lib to compile your servlets,
don't add them all to the classpath.  Add only the ones you need, which
is typically just the servlet-api classes.

Thank you for helping test out tomcat 5 -- please use the latest release
if you can: 5.0.12 will be out in the next couple of days as a beta.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: Sunday, 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
will
need to do set up your environment manually in order to compile with
javac.

Remember, each jar file needs to be explicitly added to your classpath.
Don't
just add the directory that they are under.






On Sunday 21 September 2003 06:26 am, you wrote:
 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 $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 it for my tomcat
  4.18. And water autumn cannot find it in TOMCAT 5.0.0
 
  Best
 
  Bao
 
   On Saturday 20 September 2003 17:45, water autumn wrote:
  hello:
 My environment is follow:
JDK :  j2sdk_1.4.2_01
Web Server :  TOMCAT 5.0.0
 When i devloped servlet program, such as test.java, while i
typed
   this line :
  import javax.servlet.*;, javac tell me the error:
  
  F:\JAVA\upload\AccUpload.java:8: package javax.servlet.http does
not
   exist import javax.servlet.http.*;
  
  why? can you tell me how i can resolve it?
  i can't find serlet.jar in directoryTOMCAT\common\lib
  
 water
autumn
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
[EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 :  j2sdk_1.4.2_01
   Web Server :  TOMCAT 5.0.0
When i devloped servlet program, such as test.java, while i typed this 
 line :
 import javax.servlet.*;, javac tell me the error:
 
 F:\JAVA\upload\AccUpload.java:8: package javax.servlet.http does not exist
 import javax.servlet.http.*;
 
 why? can you tell me how i can resolve it?
 i can't find serlet.jar in directoryTOMCAT\common\lib
 
water autumn
 
 _
  MSN Messenger:  http://messenger.msn.com/cn  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 it for my tomcat
4.18. And water autumn cannot find it in TOMCAT 5.0.0

Best

Bao

 On Saturday 20 September 2003 17:45, water autumn wrote:
 
hello:
   My environment is follow:
  JDK :  j2sdk_1.4.2_01
  Web Server :  TOMCAT 5.0.0
   When i devloped servlet program, such as test.java, while i typed this 
line :
import javax.servlet.*;, javac tell me the error:

F:\JAVA\upload\AccUpload.java:8: package javax.servlet.http does not exist
import javax.servlet.http.*;

why? can you tell me how i can resolve it?
i can't find serlet.jar in directoryTOMCAT\common\lib

   water autumn



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 $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 it for my tomcat
 4.18. And water autumn cannot find it in TOMCAT 5.0.0
 
 Best
 
 Bao
 
  On Saturday 20 September 2003 17:45, water autumn wrote:
  
 hello:
My environment is follow:
   JDK :  j2sdk_1.4.2_01
   Web Server :  TOMCAT 5.0.0
When i devloped servlet program, such as test.java, while i typed this 
 line :
 import javax.servlet.*;, javac tell me the error:
 
 F:\JAVA\upload\AccUpload.java:8: package javax.servlet.http does not exist
 import javax.servlet.http.*;
 
 why? can you tell me how i can resolve it?
 i can't find serlet.jar in directoryTOMCAT\common\lib
 
water autumn
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 javac.

Remember, each jar file needs to be explicitly added to your classpath. Don't 
just add the directory that they are under.






On Sunday 21 September 2003 06:26 am, you wrote:
 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 $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 it for my tomcat
  4.18. And water autumn cannot find it in TOMCAT 5.0.0
 
  Best
 
  Bao
 
   On Saturday 20 September 2003 17:45, water autumn wrote:
  hello:
 My environment is follow:
JDK :  j2sdk_1.4.2_01
Web Server :  TOMCAT 5.0.0
 When i devloped servlet program, such as test.java, while i typed
   this line :
  import javax.servlet.*;, javac tell me the error:
  
  F:\JAVA\upload\AccUpload.java:8: package javax.servlet.http does not
   exist import javax.servlet.http.*;
  
  why? can you tell me how i can resolve it?
  i can't find serlet.jar in directoryTOMCAT\common\lib
  
 water autumn
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 =
   getServletContext().getRequestDispatcher(direct);
rd.forward(request, response);
I have no problem with code, but I have one issue is how can I change the request method from POST to GET before I forward the original request.

I would appreciate any help

Paul 
 

--
Emerson Cargnin
Analista de Sitemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 servlet2 by using GET. How can I switch from POST to GET in
servlet1.

thanks

- Original Message -
From: Jose Euclides da Silva Junior - DATAPREVRJ
[EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:26 PM
Subject: RES: servlet question


try doGet() instead of doPost().
good luck.

-Mensagem original-
De: Paul Hsu [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 27 de maio de 2003 19:27
Para: [EMAIL PROTECTED]
Assunto: servlet question


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, but I have one issue is how can I change the
request method from POST to GET before I forward the original request.

I would appreciate any help

Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 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 servlet2 by using GET. How can I switch from POST to GET in
servlet1.

thanks

- Original Message -
From: Jose Euclides da Silva Junior - DATAPREVRJ
[EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:26 PM
Subject: RES: servlet question


try doGet() instead of doPost().
good luck.

-Mensagem original-
De: Paul Hsu [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 27 de maio de 2003 19:27
Para: [EMAIL PROTECTED]
Assunto: servlet question


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, but I have one issue is how can I change the
request method from POST to GET before I forward the original request.

I would appreciate any help

Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 doGet(HttpServletRequest req, HttpServletResponse res)
  throws IOException, ServletException
 {
  doPost(req, res);
 }

protected void doPost(HttpServletRequest req, HttpServletResponse res)
  throws IOException, ServletException
{
with full implementation
}




- Original Message -
From: Paul Hsu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 11:26 PM
Subject: servlet question


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, but I have one issue is how can I change the
request method from POST to GET before I forward the original request.

I would appreciate any help

Paul



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: servlet question

2003-05-27 Thread Paul Hsu
Actually my servlet try to forward a 'POST' request to a Flash program, but
the Flash program cannot process 'POST', so I must forward the request to
Flash with 'GET' method. That is my issue.

- Original Message -
From: Hassan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: 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
 the processing to the actual method. For example:

 protected void doGet(HttpServletRequest req, HttpServletResponse res)
   throws IOException, ServletException
  {
   doPost(req, res);
  }

 protected void doPost(HttpServletRequest req, HttpServletResponse res)
   throws IOException, ServletException
 {
 with full implementation
 }




 - Original Message -
 From: Paul Hsu [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, May 27, 2003 11:26 PM
 Subject: servlet question


 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, but I have one issue is how can I change the
 request method from POST to GET before I forward the original request.

 I would appreciate any help

 Paul



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: servlet question

2003-05-27 Thread Paul Hsu
My code is doing this way already, but it does not work.You think the method
will change if I forward the POST request inside doGet().

- Original Message -
From: Tam, Michael [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:44 PM
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 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 servlet2 by using GET. How can I switch from POST to GET in
servlet1.

thanks

- Original Message -
From: Jose Euclides da Silva Junior - DATAPREVRJ
[EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:26 PM
Subject: RES: servlet question


try doGet() instead of doPost().
good luck.

-Mensagem original-
De: Paul Hsu [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 27 de maio de 2003 19:27
Para: [EMAIL PROTECTED]
Assunto: servlet question


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, but I have one issue is how can I change the
request method from POST to GET before I forward the original request.

I would appreciate any help

Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: servlet question

2003-05-27 Thread Tam, Michael
I am not possitive.  I am not familiar with flash but can you process your
post data in servlet 1 and form an url with parameters attached and then
redirect?

-Original Message-
From: Paul Hsu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:58 PM
To: Tomcat Users List
Subject: Re: servlet question


My code is doing this way already, but it does not work.You think the method
will change if I forward the POST request inside doGet().

- Original Message -
From: Tam, Michael [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:44 PM
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 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 servlet2 by using GET. How can I switch from POST to GET in
servlet1.

thanks

- Original Message -
From: Jose Euclides da Silva Junior - DATAPREVRJ
[EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:26 PM
Subject: RES: servlet question


try doGet() instead of doPost().
good luck.

-Mensagem original-
De: Paul Hsu [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 27 de maio de 2003 19:27
Para: [EMAIL PROTECTED]
Assunto: servlet question


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, but I have one issue is how can I change the
request method from POST to GET before I forward the original request.

I would appreciate any help

Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 not familiar with flash but can you process your
post data in servlet 1 and form an url with parameters attached and then
redirect?

-Original Message-
From: Paul Hsu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:58 PM
To: Tomcat Users List
Subject: Re: servlet question


My code is doing this way already, but it does not work.You think the method
will change if I forward the POST request inside doGet().

- Original Message -
From: Tam, Michael [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:44 PM
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 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 servlet2 by using GET. How can I switch from POST to GET in
servlet1.

thanks

- Original Message -
From: Jose Euclides da Silva Junior - DATAPREVRJ
[EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:26 PM
Subject: RES: servlet question


try doGet() instead of doPost().
good luck.

-Mensagem original-
De: Paul Hsu [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 27 de maio de 2003 19:27
Para: [EMAIL PROTECTED]
Assunto: servlet question


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, but I have one issue is how can I change the
request method from POST to GET before I forward the original request.

I would appreciate any help

Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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.


- 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 not familiar with flash but can you process your
post data in servlet 1 and form an url with parameters attached and then
redirect?

-Original Message-
From: Paul Hsu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:58 PM
To: Tomcat Users List
Subject: Re: servlet question


My code is doing this way already, but it does not work.You think the method
will change if I forward the POST request inside doGet().

- Original Message -
From: Tam, Michael [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:44 PM
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 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 servlet2 by using GET. How can I switch from POST to GET in
servlet1.

thanks

- Original Message -
From: Jose Euclides da Silva Junior - DATAPREVRJ
[EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, May 27, 2003 3:26 PM
Subject: RES: servlet question


try doGet() instead of doPost().
good luck.

-Mensagem original-
De: Paul Hsu [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 27 de maio de 2003 19:27
Para: [EMAIL PROTECTED]
Assunto: servlet question


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, but I have one issue is how can I change the
request method from POST to GET before I forward the original request.

I would appreciate any help

Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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, but I have one issue is how can I change the
 request method from POST to GET before I forward the original request.

You can't accomplish this using the RequestDispatcher facility. You will have 
to generate a new HTTP request within the servlet and send it to the desired 
destination.

Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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;
 }
 }

 GetWrapper wrapper = new GetWrapper(request);
 RequestDispatcher rd =
 getServletContext().getRequestDispatcher(direct);
 rd.forward(wrapper, response);


Paul Hsu [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 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 servlet2 by using GET. How can I switch from POST to GET
in
 servlet1.

 thanks

 - Original Message -
 From: Jose Euclides da Silva Junior - DATAPREVRJ
 [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Tuesday, May 27, 2003 3:26 PM
 Subject: RES: servlet question


 try doGet() instead of doPost().
 good luck.

 -Mensagem original-
 De: Paul Hsu [mailto:[EMAIL PROTECTED]
 Enviada em: terça-feira, 27 de maio de 2003 19:27
 Para: [EMAIL PROTECTED]
 Assunto: servlet question


 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, but I have one issue is how can I change the
 request method from POST to GET before I forward the original request.

 I would appreciate any help

 Paul

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 processing
threads.

 My question is, how many clients can a servlet handle.
 

The maximum is determined by how many threads you configure in the
container's setup configuration, and is ultimately limited by how many
threads your JDK and operating system can support.

 Thanks,
 Kathy.

Craig McClanahan