I have been trying to incorporate the layout/navigation/screen system into a
Service for JSP. It has been one problem after another. I have tried to
use RequestDispatcher.forward to pass the response on to the layout JSP
template, which would then use a JSPNavigation object to include results of
navigation JSP templates and a screen_palceholder object to include the
screen JSP template. This cannot work, since no more .forward() calls are
allowed after one returns (the output buffer gets flushed, regardless of the
size). So I tried to use RequestDispatcher.include() to get around this.
The problem here is that the results of the navigations and screen get added
to the output stream before the layout template, so if I have something
like:
<table>
<tr><td>
<% navigation.setTemplate("top.jsp"); %>
</td></tr>
<tr><td>
<% screen_placeholder.exec(); %>
</td></tr>
</table>
I end up with:
results of top.jsp
results of the screen jsp
<table>
<tr><td>
</td></tr>
<tr><td>
</td></tr>
</table>
So my question is, does anyone care to have me check in what I have that
does not work, so that they can try to gat it working? Or should I just
check in the possibly small improvements to the existing integration, but
only support screens with null layout?
John McNally
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]