> So, doPost calls itself in an endless loop, sending the servlet into
oblivion...
Or until a java.lang.StackOverflowError exception is thrown. :)

Seriously, if a servlet gets a StackOverflowError does that impact Tomcat?
That is, can Tomcat run out of stack space if a loop in a servlet gets out
of control.

Jim

-----Original Message-----
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 2: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]>

Reply via email to