legolasWoodland
Programmer
Hi
What is mechanism for including an action output (which is a jsp file filled from data in database
in a jsp file (indeed inside a table cell in another jsp file)
a complete description of my problem is :
I have a problem with including an action response into my jsp page
here is the problem :
I want to include an action output which is a jsp page (data fetched from database)
into a cell of a table in my jsp page.
jsp page is an struts page so i used the following to include the action respose :
Code:
<jsp:include page='/editProfile.do' />
but when i run the application and come to page which contain this action response i get the
followin exception :
Code:
java.io.IOException: Stream closed
org.apache.jasper.runtime.JspWriterImpl.ensureOpen(JspWriterImpl.java:203)
org.apache.jasper.runtime.JspWriterImpl.clearBuffer(JspWriterImpl.java:159)
org.apache.jsp.checkOut_jsp._jspService(org.apache.jsp.checkOut_jsp:273)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
org.irsaa.kalali.jahan.common.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)
what is wrong with my code ? where is my mistake ?
Thank you.