Rather than use the suggested flag I have simply buffered all content, as was currently done when the wrtier was unavailable. If no exceptions occur then the content is written out. If any exceptions are rethrown by the freemarker template then they are simply passed up and handled by the exception interceptor. If none occur the template result is sent down the writer or output stream.
Description
This is the same improvement as requested for Struts 2
http://issues.apache.org/struts/browse/WW-1808
Rather than use the suggested flag I have simply buffered all content, as was currently done when the wrtier was unavailable. If no exceptions occur then the content is written out. If any exceptions are rethrown by the freemarker template then they are simply passed up and handled by the exception interceptor. If none occur the template result is sent down the writer or output stream.
tm_jee added a comment - 06/May/07 04:32 AM Hi guys,
Fixed this issue as mentioned in the Struts2 (WW-1808).
The changes are at :-
tmjee@tmjee-laptop:~/development/webwork-svn/src$ svn commit test/com/opensymphony/webwork/views/freemarker/FreemarkerResultTest.java java/com/opensymphony/webwork/views/freemarker/FreemarkerResult.java
Sending java/com/opensymphony/webwork/views/freemarker/FreemarkerResult.java
Adding test/com/opensymphony/webwork/views/freemarker/FreemarkerResultTest.java
Transmitting file data ..
Committed revision 2911.
Hi Martin and Jasper,
Please go through the patch if you got the time to spare, and feel free to reopen this issue if there's anything missed out.
Cheers guys
Fixed this issue as mentioned in the Struts2 (WW-1808).
The changes are at :-
tmjee@tmjee-laptop:~/development/webwork-svn/src$ svn commit test/com/opensymphony/webwork/views/freemarker/FreemarkerResultTest.java java/com/opensymphony/webwork/views/freemarker/FreemarkerResult.java
Sending java/com/opensymphony/webwork/views/freemarker/FreemarkerResult.java
Adding test/com/opensymphony/webwork/views/freemarker/FreemarkerResultTest.java
Transmitting file data ..
Committed revision 2911.
Hi Martin and Jasper,
Please go through the patch if you got the time to spare, and feel free to reopen this issue if there's anything missed out.
Cheers guys