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-startup>1</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-name>login</servlet-name>
>    <servlet-class>org.volume4.authentication.login</servlet-class>
></servlet>
><servlet-mapping>
>    <servlet-name>login</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]

Reply via email to