nebula kodatham

Greenhorn
+ Follow
since Nov 10, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by nebula kodatham

Originally posted by Alex George:
My classpath pointing to
C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.jar
May be I am pointing to the wrong place??




Copy the servlet-api.jar from <C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.jar> and place it in ur working directory

then from ur current working directory set the CLASSPATH as shown below:

set CLASSPATH=%CLASSPATH%;.;servlet-api.jar;
18 years ago
can anyone post a sample code demonstrating how to use log4j from servlets???/
18 years ago

Originally posted by William Brogden:
That is indeed an interesting question. In the source code for the Tomcat 5.0.27 ResponseFacade.java we find


So it is not clear why you are not seeing the exception.
Bill













nothing is working out
18 years ago
hi
Nothing is working out
18 years ago

Originally posted by Scott Dunbar:
I'm sorry but why on earth do you care? It is bad enough overriding the service() method - that is not considered good practice - but why do you need the reset() to throw an exception? Perhaps it is a bug - you don't tell us what container you're using. But I can't figure out why you want the exception. Is there a good reason or is this a fishing expedition?






hi

The container i am using is tomcat5.0.25.
You are right.......there is no good reason but just experimenting with this small bit of code to understand the internal logic used in the buffering concept of servlets.....

I think it does not matter which method is being overriden here(be it service()/doGet()/doPost()......).

So as per the concept it should throw an exception......which i am not getting on executing the above code.

Any ideas please???


Thank You
18 years ago
hi,

The response.reset() of HttpServletResponse should throw IllegalStateException if it is called after the response has been commited. In my code i have used isCommited()to find out if the response is commited and it gives true. After the response is commited i call the reset()which sholud give an exception as expected.But i am not getting any exception......i get the response without any exceptions which should not be the case.Why am i not getting any exception. Can anyone give a small sample code illustrating the usage of reset().


here's my code


[ November 10, 2005: Message edited by: Mark Spritzler ]
18 years ago
hi,

The response.reset() of HttpServletResponse should throw IllegalStateException if it is called after the response has been commited. In my code i have used isCommited()to find out if the response is commited and it gives true. After the response is commited i call the reset()which sholud give an exception as expected.But i am not getting any exception......i get the response without any exceptions which should not be the case.Why am i not getting any exception. Can anyone give a small sample code illustrating the usage of reset().


here's my code


[ November 10, 2005: Message edited by: Mark Spritzler ]
18 years ago