ginal Message-
>From: Merrill Cornish [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, December 31, 2003 4:54 PM
>To: Tomcat Users List
>Subject: Sudden IllegalStateException
>
>I have been developing a JSP/servlet application using Tomcat 5.0.16.
>Over the past months, I felt that I
Ben,
Yes, I can post the code, but now I'm not sure that will help.
Yesterday I tried my old standby debugging technique of commenting out
virtually all of the code in the servlet. It worked. I then started
uncommenting portions until it stopped working. For a while, I thought
I was winning
On Wednesday 31 December 2003 09:00 pm, Merrill Cornish wrote:
> Ben,
>
> I don't know if it's a good idea or not, but I separate the HTML stuff
> into the JSP pages and use the servlets solely for program logic.
It is a good idea. The MVC pattern is widely accepted as a best practice for
server s
Hello Merrill
If you're still working on this tomorrow and you want to share your code I'd be
willing to walk it through.
Howard Watson
Database Administrator
Easter Seals-Goodwill Northern Rocky Mountain
4400 Central Avenue
Great Falls, Montana 59405
(406) 771-3759
[EMAIL PROTECTED]
>>> [EMAIL
Ben,
I don't know if it's a good idea or not, but I separate the HTML stuff
into the JSP pages and use the servlets solely for program logic.
Therefore, my servlets never output content.. Instead they merely
redirect to a JSP page which then contains only enough Java logic to
collect the dat
May be I'm trying to help with something over my head. When I had this error I read
about using Return and could not visualize where from a servlet I would return to in a
JSP., so I know I need to research this.
However, the point is from the faq link I gave you:
These are the most common r
I'd be more concerned with what is before it.
If anything writes to either the page or the headers before a redirect, it
will throw an IllegalStateException.
Did you set a content type?
On Wednesday 31 December 2003 06:34 pm, you wrote:
> Howard,
>
> There are three sendRedirect() calls in the
Howard,
There are three sendRedirect() calls in the servlet. The first two
redirect back to the login page if with the login user id is not found
or the login password doesn't match. In both cases, the sendRedirect()
is immediately followed by a return. (I learned to use explicit returns
a
Are you real sure that you do not have more than one sendRedirect in your code that
can be processed sequentially? The first one will set a header and the second will
throw an error.
Have a Happy New Year!
>>> [EMAIL PROTECTED] 12/31/03 03:43PM >>>
Howard,
I had already read the misc.html#ill
Howard,
I had already read the misc.html#illegalstate. In my case, I KNOW the
illegal state was triggered by sendRedirect() since that's what's in the
trace back. Also, I've already verified that immediately before the
call to sendRedirect(), both session and response are OK.
I forgot to men
>From here: http://jakarta.apache.org/tomcat/faq/misc.html#illegalstate
Why do I get java.lang.IllegalStateException?
These are the most common reasons how you can get an java.lang.IllegalStateException:
Calling setBufferSize and content has been written.
The response has been committed and you
I have been developing a JSP/servlet application using Tomcat 5.0.16.
Over the past months, I felt that I had learned enough (partially with
the help of this mailing list) about JSP, servlets, and Tomcat that I
could debug most of the obsticales that popped up. Until this morning.
I started
12 matches
Mail list logo