RE: HTTP method POST is not supported by this URL

2001-12-04 Thread Chad Alan Prey

yeah I fat fingered that...take the doPost out of doPost and it works...This
is taken form Core Servlets by Hall.

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 12:21 PM
To: Tomcat Users List
Subject: Re: HTTP method POST is not supported by this URL


Chad Alan Prey wrote:

> Holy Smoke...I know this one...you need to have doGet call doPost like
this:
>
> public void doGet (HttpServletRequest req, HttpServletResponse res)
>   throws ServletException
>   {
>   doPost(req, res);
>   }
>
>   public void doPost (HttpServletRequest req, HttpServletResponse res)
>   throws ServletException
>   {
>   doPost(req, res);
>   }
>
> pretty slick eh?

So, doPost calls itself in an endless loop, sending the servlet into
oblivion...

And doPost, doGet and others are "protected" not "public" methods.

Nix.


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: HTTP method POST is not supported by this URL

2001-12-04 Thread Chad Alan Prey

Holy Smoke...I know this one...you need to have doGet call doPost like this:

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

public void doPost (HttpServletRequest req, HttpServletResponse res)
throws ServletException
{
doPost(req, res);
}

pretty slick eh?

-Original Message-
From: Endle, Cory [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 11:29 AM
To: 'Tomcat Users List'
Subject: HTTP method POST is not supported by this URL


Can anyone help me with this one?

I am running a simple servlet that that has a form that does a "post".  When
the form is submitted, I get the error
message HTTP method POST is not supported by this URL

Do I need something in my web.xml file?  My web.xml file just defines the
servlet and does some simple servlet mapping.

Thanks!

Cory Endle
Seagate/XIOtech
E-mail: [EMAIL PROTECTED]


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




setting global application variables

2001-12-03 Thread Chad Alan Prey

Is there a way to set a global application variable for all servlets? I am
using Tomcat 4.0.1 and have seen the SnoopSession example for setting an
init variable for a servlet...I need a global variable. Thanks.

Chad Alan Prey
Software Engineer YesMail.com
home  - 619.299.1784
cell  - 858.829.7178
email - [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>