[Yanel-dev] Redirects
Michael Wechner
michael.wechner at wyona.com
Tue Jan 22 20:04:23 CET 2013
excellent :-)
Am 22.01.13 15:26, schrieb basZero:
> Yes, that's it.
>
> Thanks a lot, I'll look into it.
>
> Cheers
> Balz
>
> On Tue, Jan 22, 2013 at 3:21 PM, Michael Wechner
> <michael.wechner at wyona.com <mailto:michael.wechner at wyona.com>> wrote:
>
> 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
>>
>>
>>
>
>
> --
> Yanel-development mailing list Yanel-development at wyona.com
> <mailto:Yanel-development at wyona.com>
> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>
>
>
>
> --
> *Balz Schreier*
> Zwischengas AG
> CTO / Fotograf
>
> www.zwischengas.com <http://www.zwischengas.com>
> www.facebook.com/zwischengas <http://www.facebook.com/zwischengas>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wyona.org/pipermail/yanel-development/attachments/20130122/e43462c1/attachment.html>
More information about the Yanel-development
mailing list