Redirect / Forward? [message #239716] |
Thu, 24 May 2007 05:44  |
Eclipse User |
|
|
|
Hello,
I need a way to exit a report and forward/redirect to another URL, *.jsp or
JAVA WebApplication.
E.g. if a certain condition is true I want to quit the report and redirect
the user to an error/information page.
How can I do this?
Any idea is appreciated, thanks!
|
|
|
|
|
Re: Redirect / Forward? [message #239822 is a reply to message #239804] |
Thu, 24 May 2007 13:34  |
Eclipse User |
|
|
|
Originally posted by: jasonweathersby.alltel.net
I do not know a way of doing that because we do not have access to the
response object in script. Only the request object is available.
You may be able to store the response object earlier. I am just not
certain.
request = reportContext.getHttpServletRequest();
response = Maybe get it out of session, if you store it there.
request.getRequestDispatcher("wwww.yahoo.com").forward(request, response);
Jason
Mr. Burns wrote:
> Hello Jason,
>
> thanks for your reply.
> I need the forwarding inside the initialize trigger of the report. Can it be
> done there as well?
> If yes how can I do?
>
> Thansk for further help!
>
> PS:
>
> maybe you can explain waht you wrote, I cannot really follow when you say:
>
>> If you are testing this in RC0 there appears to be an issue with the
>> design file changes not setting the need to save flag. So add a label or
>> something else and change it as well,
>>
> Thanks!
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04282 seconds