Hi all,

   Can the following be done using <jsp:include> and STRUTS? My
aim is to have a jsp page that has 3 <jsp:includes>. And each includes
links are (*.do). An example is shown below

<!-- Section 1 - Load 1st part -->
<% String path = (String)request.getAttribute("formpath"); %>
<% String userid = (String)request.getAttribute("userid"); %>
<% if (path != null){ try{%>
    <jsp:include page="<%=path%>" flush="true">  
        <jsp:param name="userid" value="<%=userid%>" />
      </jsp:include>        
<%}
<!-- Section 2 - Load 2nd part -->
<another jsp:include>
<!-- Section 3 - Load 3rd part -->
<another jsp:include>

**Eg: where path = "/pages/showsomething.do"**

I receive an error - "Response has already been committed"

I understand that this is a JSP error and it is due to the fact that 
response body output has been flushed to the client.

Questions
-----------
Is this the right way to go about using includes and STRUT?
Is there a work around for this?

Thank you in advance

Cheers
Sam








--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to