[Yanel-dev] Redirects

Michael Wechner michael.wechner at wyona.com
Tue Jan 22 15:21:45 CET 2013


Dear Balz

I guess you mean

view.setResponse(false);

See for example

src/resources/redirect/src/java/org/wyona/yanel/impl/resources/redirect/RedirectResource.java

HTH

Michael



Am 18.01.13 09:38, schrieb basZero:
> dear all,
>
> sometimes you need to do a redirect from within a resource.
> so what you normally do is the following:
>
>         yanelEnvironment.getResponse().setHeader("Location", redirectUrl);
>       
>   yanelEnvironment.getResponse().setStatus(HttpServletResponse.SC_MOVED_TEMPORARILY);
>
> then you just do a "return" from your resource and let Yanel do the rest.
> Is it possible to tell Yanel to abort any further processing and do 
> just sending back the reponse?
>
> I remember that there was a method to tell Yanel to abort, but I don't 
> find the email anymore.
>
> Anybody a clue?
>
> Cheers
> Balz
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wyona.org/pipermail/yanel-development/attachments/20130122/6c1fb0a7/attachment.html>


More information about the Yanel-development mailing list