on 1/10/2001 8:08 AM, "Magnús Þór Torfason" <[EMAIL PROTECTED]> wrote:

> A user asks for a specific VelocityScreen, assuming that it is alright to
> access it.  This is not OK, because of the state of the application (there
> is no active customer/product/etc.), so I must forward him to a more general
> screen.
> 
> When using ECS, I achieved this effect with:
> 
> return ScreenLoader.getInstance().eval(data, "TheDefaultScreen");
> 
> This is not possible within the doBuildTemplate function, since it does not
> return anything.  What is the substitute for this.
> 
> Note that setTemplate(data,"DefaultScreen.vm") will not do, since, as is
> stated in the javadocs for that method, this will NOT affect how objects are
> stuffed into context.

There is a TemplateService.doRedirect() method that is the alternative to
setTemplate() and is not the same as response.sendRedirect().

> ps. I would like to avoid a response.sendRedirect() at all costs.

duh. :-)

-jon



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to