Skip to main content



      Home
Home » Archived » BIRT » jsp include WebViewer
jsp include WebViewer [message #163076] Fri, 19 May 2006 14:02 Go to next message
Eclipse UserFriend
Originally posted by: barrerager.delsatgroup.com

I'm trying to include a report inside a jsp page in this way

<jsp:include
page=" /frameset?__report=report/test.rptdesign&__overwrite=tru e&sample=hello
world" flush="true"/>

as result I get a blank page. I've also tried with jsp:forward and then the
toolbar an the navigation bar fragments are displayed but no the report
content.

From my browser if I use

http://localhost:8080/mywebapp/frameset?__report=report/test .rptdesign&__ove
rwrite=true&sample=helloworld

it works.

I've also tried to include/forward the report within a servlet like the
example below and i get the same results

public class MyServlet extends javax.servlet.http.HttpServlet implements
javax.servlet.Servlet {

....

protected void doGet(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
....
ServletContext sc = getServletContext();
RequestDispatcher rd =
sc.getRequestDispatcher("/frameset?__report=report/test.rptdesign&__overwrit
e=true&sample=helloworld");
rd.include(request, response); //I get a blank page
//rd.forward(request, response);//i get the toolbar an navigation bar

Can anyone point what I'm doing wrong?
Thank you in advance.

I'm using
Eclipse 3.1.2
Tomcat 4.1.27-LE-jdk14
BIRT 2.0.1

Barrera, German
Re: jsp include WebViewer [message #163472 is a reply to message #163076] Mon, 22 May 2006 12:22 Go to previous messageGo to next message
Eclipse UserFriend
Can you try a redirect?

Jason

"Barrera, German" <barrerager@delsatgroup.com> wrote in message
news:e4l12s$juk$1@utils.eclipse.org...
> I'm trying to include a report inside a jsp page in this way
>
> <jsp:include
> page=" /frameset?__report=report/test.rptdesign&__overwrite=tru e&sample=hello
> world" flush="true"/>
>
> as result I get a blank page. I've also tried with jsp:forward and then
> the
> toolbar an the navigation bar fragments are displayed but no the report
> content.
>
> From my browser if I use
>
> http://localhost:8080/mywebapp/frameset?__report=report/test .rptdesign&__ove
> rwrite=true&sample=helloworld
>
> it works.
>
> I've also tried to include/forward the report within a servlet like the
> example below and i get the same results
>
> public class MyServlet extends javax.servlet.http.HttpServlet implements
> javax.servlet.Servlet {
>
> ...
>
> protected void doGet(HttpServletRequest request, HttpServletResponse
> response) throws ServletException, IOException {
> ...
> ServletContext sc = getServletContext();
> RequestDispatcher rd =
> sc.getRequestDispatcher("/frameset?__report=report/test.rptdesign&__overwrit
> e=true&sample=helloworld");
> rd.include(request, response); //I get a blank page
> //rd.forward(request, response);//i get the toolbar an navigation bar
>
> Can anyone point what I'm doing wrong?
> Thank you in advance.
>
> I'm using
> Eclipse 3.1.2
> Tomcat 4.1.27-LE-jdk14
> BIRT 2.0.1
>
> Barrera, German
>
>
Re: jsp include WebViewer [message #163513 is a reply to message #163472] Mon, 22 May 2006 14:14 Go to previous messageGo to next message
Eclipse UserFriend
Try something like this in a jsp page:

<%
String redirectURL =
" http://localhost:8080/birt/frameset?__report=report/SalesInv oice.rptdesign&__overwrite=true";
response.sendRedirect(redirectURL);
%>

Jason

"Jason Weathersby" <jweathersby@actuate.com> wrote in message
news:e4sofl$lps$1@utils.eclipse.org...
> Can you try a redirect?
>
> Jason
>
> "Barrera, German" <barrerager@delsatgroup.com> wrote in message
> news:e4l12s$juk$1@utils.eclipse.org...
>> I'm trying to include a report inside a jsp page in this way
>>
>> <jsp:include
>> page=" /frameset?__report=report/test.rptdesign&__overwrite=tru e&sample=hello
>> world" flush="true"/>
>>
>> as result I get a blank page. I've also tried with jsp:forward and then
>> the
>> toolbar an the navigation bar fragments are displayed but no the report
>> content.
>>
>> From my browser if I use
>>
>> http://localhost:8080/mywebapp/frameset?__report=report/test .rptdesign&__ove
>> rwrite=true&sample=helloworld
>>
>> it works.
>>
>> I've also tried to include/forward the report within a servlet like the
>> example below and i get the same results
>>
>> public class MyServlet extends javax.servlet.http.HttpServlet implements
>> javax.servlet.Servlet {
>>
>> ...
>>
>> protected void doGet(HttpServletRequest request, HttpServletResponse
>> response) throws ServletException, IOException {
>> ...
>> ServletContext sc = getServletContext();
>> RequestDispatcher rd =
>> sc.getRequestDispatcher("/frameset?__report=report/test.rptdesign&__overwrit
>> e=true&sample=helloworld");
>> rd.include(request, response); //I get a blank page
>> //rd.forward(request, response);//i get the toolbar an navigation bar
>>
>> Can anyone point what I'm doing wrong?
>> Thank you in advance.
>>
>> I'm using
>> Eclipse 3.1.2
>> Tomcat 4.1.27-LE-jdk14
>> BIRT 2.0.1
>>
>> Barrera, German
>>
>>
>
>
Re: jsp include WebViewer [message #163521 is a reply to message #163513] Mon, 22 May 2006 14:44 Go to previous messageGo to next message
Eclipse UserFriend
You should also be able to use

<jsp:forward page="/frameset">
<jsp:param name="__report" value="report/SalesInvoice.rptdesign" />
<jsp:param name="__overwrite" value="true" />
</jsp:forward>

If you are getting a blank page verify that prototype.js has been copied to
the ajax/lib directory.

Jason


"Jason Weathersby" <jweathersby@actuate.com> wrote in message
news:e4sv17$2kf$1@utils.eclipse.org...
> Try something like this in a jsp page:
>
> <%
> String redirectURL =
> " http://localhost:8080/birt/frameset?__report=report/SalesInv oice.rptdesign&__overwrite=true";
> response.sendRedirect(redirectURL);
> %>
>
> Jason
>
> "Jason Weathersby" <jweathersby@actuate.com> wrote in message
> news:e4sofl$lps$1@utils.eclipse.org...
>> Can you try a redirect?
>>
>> Jason
>>
>> "Barrera, German" <barrerager@delsatgroup.com> wrote in message
>> news:e4l12s$juk$1@utils.eclipse.org...
>>> I'm trying to include a report inside a jsp page in this way
>>>
>>> <jsp:include
>>> page=" /frameset?__report=report/test.rptdesign&__overwrite=tru e&sample=hello
>>> world" flush="true"/>
>>>
>>> as result I get a blank page. I've also tried with jsp:forward and then
>>> the
>>> toolbar an the navigation bar fragments are displayed but no the report
>>> content.
>>>
>>> From my browser if I use
>>>
>>> http://localhost:8080/mywebapp/frameset?__report=report/test .rptdesign&__ove
>>> rwrite=true&sample=helloworld
>>>
>>> it works.
>>>
>>> I've also tried to include/forward the report within a servlet like the
>>> example below and i get the same results
>>>
>>> public class MyServlet extends javax.servlet.http.HttpServlet implements
>>> javax.servlet.Servlet {
>>>
>>> ...
>>>
>>> protected void doGet(HttpServletRequest request, HttpServletResponse
>>> response) throws ServletException, IOException {
>>> ...
>>> ServletContext sc = getServletContext();
>>> RequestDispatcher rd =
>>> sc.getRequestDispatcher("/frameset?__report=report/test.rptdesign&__overwrit
>>> e=true&sample=helloworld");
>>> rd.include(request, response); //I get a blank page
>>> //rd.forward(request, response);//i get the toolbar an navigation
>>> bar
>>>
>>> Can anyone point what I'm doing wrong?
>>> Thank you in advance.
>>>
>>> I'm using
>>> Eclipse 3.1.2
>>> Tomcat 4.1.27-LE-jdk14
>>> BIRT 2.0.1
>>>
>>> Barrera, German
>>>
>>>
>>
>>
>
>
Re: jsp include WebViewer [message #163537 is a reply to message #163513] Mon, 22 May 2006 15:03 Go to previous message
Eclipse UserFriend
Originally posted by: barrerager.delsatgroup.com

Redirect doesn
Previous Topic:subreport problem in 2.0.1
Next Topic:PERFORMANCE
Goto Forum:
  


Current Time: Mon May 12 05:19:20 EDT 2025

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

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

Back to the top