Re: [Resin-interest] More on include()/forward() issue.

2008-03-26 Thread Mattias Jiderhamn
Ilya Kasnacheev wrote (2008-03-12 12:18): В сообщении от 12 Март 2008 12:07 Mattias Jiderhamn написал(a): What about my anonymous wrapper? See reply to original post. It may work if you are certain there will be no flushing to the client before a forward(). Nope, there

Re: [Resin-interest] More on include()/forward() issue.

2008-03-12 Thread Mattias Jiderhamn
Ilya Kasnacheev wrote (2008-03-11 11:35): or would increasing the buffer (response.setBufferSize()) prevent the response from being comitted until the included forward has been issued??? This way is too like hack. What if we'll fill this buffer prematurely anyway? If the amount of data

Re: [Resin-interest] More on include()/forward() issue.

2008-03-11 Thread Ilya Kasnacheev
В сообщении от 7 Март 2008 22:12 Mattias Jiderhamn написал(a): page - include (forward - forward - forward - forward - page) ... forward() in included servlet does not mean instead of including page but instead of included page Ok, now I see where you're coming from. Do you have to

[Resin-interest] More on include()/forward() issue.

2008-03-07 Thread Ilya Kasnacheev
Let's say we've got a servlet such as == protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { RequestDispatcher rd = getServletContext().getRequestDispatcher(/target); String s; s = Launcher: response is +

Re: [Resin-interest] More on include()/forward() issue.

2008-03-07 Thread Ilya Kasnacheev
В сообщении от 7 Март 2008 13:14 Ilya Kasnacheev написал(a): response P.S. I wonder how bad it can be: response = new HttpServletResponseWrapper(response) { public boolean isCommitted() { return false; } }; That's, like,

Re: [Resin-interest] More on include()/forward() issue.

2008-03-07 Thread Mattias Jiderhamn
If I understand your question: the reason the DispatchResponse is committed is that you have called .flush() explicitly on the original HttpServletRequest (HttpResponse). This is nothing strange. Why could you want to create a wrapper to hide the commited state, so that you can perform

Re: [Resin-interest] More on include()/forward() issue.

2008-03-07 Thread Huitang Li
Here is not a solution, while it gives some insights on java sevelet spec and jsp spec: http://today.java.net/pub/a/today/2005/08/04/jspcomponents.html?page=3#jsp_servlets_compatibility In this article, it referred to old resin versions, I believe. Probably this can be helpful for resin

Re: [Resin-interest] More on include()/forward() issue.

2008-03-07 Thread Ilya Kasnacheev
В сообщении от 7 Март 2008 15:48 Mattias Jiderhamn написал(a): If I understand your question: the reason the DispatchResponse is committed is that you have called .flush() explicitly on the original HttpServletRequest (HttpResponse). Yeah, that's what I did exactly. It would have committed it

Re: [Resin-interest] More on include()/forward() issue.

2008-03-07 Thread Mattias Jiderhamn
Ilya Kasnacheev wrote (2008-03-07 16:33): page - include (forward - forward - forward - forward - page) ... forward() in included servlet does not mean instead of including page but instead of included page Ok, now I see where you're coming from. Do you have to issue the explicit .flush() or

Re: [Resin-interest] More on include()/forward() issue.

2008-03-07 Thread Mattias Jiderhamn
Ilya Kasnacheev wrote (2008-03-07 16:33): page - include (forward - forward - forward - forward - page) ... forward() in included servlet does not mean instead of including page but instead of included page Ok, now I see where you're coming from. Do you have to issue the explicit .flush() or