struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frost, Howard" <hfr...@tiaa-cref.org>
Subject Need Advice using templates with Struts
Date Thu, 06 Jun 2002 12:46:24 GMT
My HTML pages are made up of small rectangles of data which get reused
around the web site.  Each rectangle is painted from a bean.  Ideally, there
would be a paint action associated with each rectangle which populates this
bean and forwards to the jsp page for rendering the rectangle.  So far so
good.

To compose a given page, I would like to use <jsp:include> and/or struts
templating tags.  The 'page' for the include however need to be the paint
action rather than the jsp page so the bean is available.  But this
generates an IllegalStateException (in Tomcat4.0).  I do not want the action
for the top level page to be responsible for filling all the beans for all
the composite rectangles.  These rectangles are nested and cna change over
time.  Any suggestions?

This renders FolioViewFrag.jsp but the bean does not get populated:

     <HTML>
      ...
     <jsp:include page="FolioViewFrag.jsp"/>


This fails with IllegalStateException:

     <HTML>
      ...
     <jsp:include page="/folioViewPaint.do" />  <!-- Struts action which
fills bean and forwards to FolioViewFrag.jsp -->


Tomcat exception:

     java.lang.IllegalStateException: Cannot forward after response has been
committed


**********************************************************************
This message, including any attachments, contains confidential information intended for a
specific individual and purpose, and is protected by law.  If you are not the intended recipient,
please contact sender immediately by reply e-mail and destroy all copies.  You are hereby
notified that any disclosure, copying, or distribution of this message, or the taking of any
action based on it, is strictly prohibited.
TIAA-CREF
**********************************************************************

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message