[Yanel-dev] Redirects

basZero baszero at gmail.com
Fri Jan 18 09:38:54 CET 2013


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/20130118/f93a9d06/attachment.html>


More information about the Yanel-development mailing list