Skip to main content



      Home
Home » Archived » BIRT » Redirect / Forward?
Redirect / Forward? [message #239716] Thu, 24 May 2007 05:44 Go to next message
Eclipse UserFriend
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 #239771 is a reply to message #239716] Thu, 24 May 2007 11:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

You may be able to do this using the <script> tag in a text control.
Something like

<script type="text/javascript">
if( <VALUE-OF>params["fwd"]</VALUE-OF> ){
location.replace( "http://www.yahoo.com" );
}
</script>

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,

Jason


Mr. Burns wrote:
> 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 #239804 is a reply to message #239771] Thu, 24 May 2007 12:01 Go to previous messageGo to next message
Eclipse UserFriend
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!
Re: Redirect / Forward? [message #239822 is a reply to message #239804] Thu, 24 May 2007 13:34 Go to previous message
Eclipse UserFriend
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!
>
>
Previous Topic:avoiding multiple sql invocation-- workaround?
Next Topic:Extra space on left and right of plot area
Goto Forum:
  


Current Time: Tue Jul 22 12:09:51 EDT 2025

Powered by FUDForum. Page generated in 0.04282 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top