Hi, guys! I am bothering you again with my JSP include/forward/redirect problem. I am not able to comment on JSP53 spec, so I thought that since Tomcat is reference implementation of JSP, then you guys may have some influence on JSP standard.
To recap, my problem is that I have a resource, included in JSP page. The included resource (in my case a struts action, but can be a servlet) performs forward (or redirect, or redirect and then forward), to a location with actual content (currently, JSP page). The problem I am having is that response stream is closed after my included resource is processed, and the rest part of parent page is not processed. I was pointed to the spec: JSP version 2.4, section 8.4 reads: "Before the forward method of the RequestDispatcher interface returns, the response content must be sent and committed, and closed by the servlet container." I want it to be changed to something like this: "Before the forward method of the RequestDispatcher interface returns, the response content must be sent and committed, and closed by the servlet container, UNLESS REQUEST TO FORWARD METHOD WAS NOT INCLUDED INTO ANOTHER REQUEST." Here is the reason: I want to be able to create components in JSP using jsp:include. I want to be able to jsp:include serlvets or Struts actions or other request-processing modules, which then would forward to (or redirect to) actual content - a result page, which would become a piece in the main page. I cannot apply clean MVC model within current JSP standard: resource that I include, must generate output itself. This is against good style and brings us back to dark ages of web programming. If anyone from this group had a chance to bring attention of JSR53 members to this issue, I would be glad to hear about the progress. Thanks, Michael. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]