Jonas Eriksson wrote:

Any pointer of how a solution could be done would be greatly appreciated . I will of course submit my changes to JIRA (if the solution is nice enough) so others may download and try it out. Unfortunately there are a couple of properties in the VelocityLayoutServlet that are private which forced me to copy the class instead of using inheritance.

Have you had any time checking this out yet?

Heya,


I haven't had a chance to check this out in any detail. The issue that I see is that the the WebWorkVelocity* classes want to write to a pageContext.getOut() rather than directly to response.getWriter().

I think a reasonable solution would be to have the WebWorkLayoutServlet extend by aggregation the VelocityViewServlet and the WebWorkVelocityServlet. You would then need to create a wrapper class for PageContext so that getOut() returns a writer to your buffer rather than the true buffer. The remaining pageContext methods should be left alone, especially pushBody() and popBody().

M



-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to