Jump to content
We've recently updated our Privacy Statement, available here ×

Linking to report directly in Jasperserver6.3


steveschils
Go to solution Solved by steveschils,

Recommended Posts

Hello,

I have the following problem met Jasperserver Community 6.3.

We want to migratie our reports from Jasperserver 5.5 to the new 6.3 version. Import and export functionality works well, so we can run the reports in the new Jasperserver 6.3 environment.

However: We have an application that runs the reports directly , with a form and HTTP POST parameters (mainly to not export de parameters in the requested urls)

This works great in Jasper5.5 , but it does not work anymore in Jaspserver 6.3 . We get a username / password page.

When we link to the report via HTTP GET request url it works however.

Can anyone help me with this ? Rewriting the application is not an option because we call a lot of different reports.

Thx

Steve

 

 

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Ok I Know but this was not my question..

&j_username=[username]&j_password=[password] in the url, thus via HTTP get parameters works.

for example : http://jasper.local/jasperserver/flow.html?_flowId=viewReportFlow&reportUnit=/Reports/incidents&ParentFolderUri=/Reports/&param1=1&decorate=no&output=pdf&j_username=joeuser&j_password=joeuser

This url works.

But Till now jasperserver also worked with an http post , like code this below

<html>    <body onload="document.forms[0].submit()">        <form name="pop_up" method="post" action="http://jasper.local/jasperserver/flow.html">            <input type="hidden" name="reportUnit" value="/Reports/incidents">            <input type="hidden" name="ParentFolderUri" value ="/Reports/'>            <input type="hidden" name="param1" value="1">            <input type="hidden" name="_flowId" value="viewReportFlow">            <input type="hidden" name="decorate" value="no">            <input type="hidden" name="j_username" value="joeuser">            <input type="hidden" name="j_password" value="joeuser">            <input type="hidden" name="output" value="pdf">            <input type="submit" name="OK" value="OK">        </form>    </body></html>[/code]

and this does not seem to work anymore. I justs gives the login page. With Jasperserver 5.5, it works.

UPDATE * I found the solution myselft

in the form I now use method="get" instead of post and then it works

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...