yes.

In turbine-2.3.3 it is in

org.apache.turbine.modules.screens.VelocityDirectScreen.buildTemplate
(RunData)

        TurbineVelocity.handleRequest(context,prefix + templateName,data.
getOut());

In contrast in turbine-4.0-M1.jar it is:

        TurbineVelocity.handleRequest(context, prefix + templateName,
data.getResponse().getOutputStream());



The same for the doBuild method(s) in

org.apache.turbine.modules.layouts.VelocityDirectLayout.



org.apache.turbine.modules.layouts.VelocityOnlyLayout has new
        getOutputStream

while in turbine-2.3.3

        data.getOut().print(TurbineVelocity .handleRequest(context, prefix
+ templateName));



org.apache.turbine.services.jsp.TurbineJspService.handleRequest(RunData,
String, boolean) has

 old:   data.getOut().flush();

new:    data.getResponse().getWriter().flush();



You could find further usages of data.getOut(), e.g. in
org.apache.turbine.modules.layouts.VelocityXslLayout,
org.apache.turbine.services.jsp.util.JspNavigation.setTemplate(String),
org.apache.turbine.services.jsp.util.JspScreenPlaceholder.exec().


Best, Georg.



                                                                                
                                                          
  Von:        Thomas Vandahl <t...@apache.org>                                  
                                                            
                                                                                
                                                          
  An:         Turbine Developers List <dev@turbine.apache.org>                  
                                                          
                                                                                
                                                          
  Datum:      31.08.2011 13:00                                                  
                                                          
                                                                                
                                                          
  Betreff:    Re: Antwort: Turbine 4.0 Migration Guide                          
                                                          
                                                                                
                                                          





On 30.08.11 09:47, Georg Kallidis wrote:
> With this release I experience with the handling of the velocity
> templates a similar problem as discussed in
>
> http://wiki.apache.org/turbine/Turbine2/VelocityOnlyLayout getting the
> error java.lang.IllegalStateException: getOutputStream() has already
> been called for this response.

I'm not sure if I understand what's going wrong. The handling of these
topics was not supposed to be changed from 2.3.3 to 4.0. I tried to
merge the changes that happened in 2.3.x back into the trunk but some of
them might have slipped through. Could you please check what the code
differences are between 2.3.3 and 4.0 in this area?

Bye, Thomas.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@turbine.apache.org
For additional commands, e-mail: dev-h...@turbine.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@turbine.apache.org
For additional commands, e-mail: dev-h...@turbine.apache.org

Reply via email to