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

Parameters passed in URL


vsoneta

Recommended Posts

I need help in 2 things:

 

I am constructing the url from java something like ... http://.../jasperserver/flow.html?_flowId=viewReportFlow&reportUnit=/DierTracts/Contracts&ContractID=907

As you can see the url has ContractID passed in and is visible so it's gets a chance to the user to change it and see something else...need to send this parameter in that url for my results to run but at the same time I don't want users to view this so that they will get chance to change it..

what should I do... I am using the custom Datasource in which I need those parameters.

Can I do like this or is there any other way I can achieve this...

1) How to pass the parameters without using the input controls in the url so that it is invisible to the user.. basically how a GET method does in the html...

2) How to access those send parameters in my custome datasource.

 

PLEASE HELP...

 

 

 

 

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Hi Vishal,

 

I am creating the url in java and forwarding directly to jasperserver link.. So there is no jsp involved here basically whatever I have to do is in java class and then pass those parameters to the jasperserver and as an input controls and those will be accessed in the custom datasources. So can you suggest something else.

Link to comment
Share on other sites

What I am having issue in passing the paramertrs in url that basically does the GET functionality,

I am generating the url in my class file and then forwarding directly to that url. So in jasperserver the url shows "

"http://servername/jasperserver/flow.html?_flowId=viewReportFlow&reportUnit=/testing/SampleReportCDS&LocationID=2&DepartmentID=3"

 

and I want it to show to the user in : "http://servername/jasperserver/flow.html?" or anything but not showing these 2 parameters LocationID=2&DepartmentID=3.

 

Please help .. I am just stuck here...

 

 

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...