MyEclipse: Passing Parameter values using POST technique dr_khaledcs - Mar 04, 2008 - 01:37 PM Post subject: Passing Parameter values using POST technique
Hi,
It is clear for me how to pass parameter values to the parameters of a web report application using GET technique. But this approach is not secure and would allow any user to get any data just by changing the parameter values in the URL. So, please state how to pass parameter values to the parameters of a web report application using POST technique.
Best regards
Khaledsupport-rkalla - Mar 04, 2008 - 06:22 PM Post subject: RE: Passing Parameter values using POST technique
Khaled,
Actually you should be able to accomplish this with exactly the same code you have in the report page as it is, but instead of calling the page via a URL, like:
http://mysite.com/myreport.jsp?arg1=blah&arg2=hamburgers
try and do a POST to it, your code that retrieves the parameters in the JSP should still pull the posted arguments if you POST directly to the JSP page.neetu59 - Mar 13, 2009 - 10:25 PM Post subject: RE: Passing Parameter values using POST technique
hi
can you give me an example about how to" try and do a POST to it, your code that retrieves the parameters in the JSP should still pull the posted arguments if you POST directly to the JSP page." ? I have parameters in a JSP page , result.jsp which I want to pass to the reports. There is a jsp page(new_report.jsp) which was created when I added Report Capabilities to the project. How do I pass the parameters?
thanks
Neetirmcvay - Mar 13, 2009 - 10:37 PM Post subject: RE: Passing Parameter values using POST technique
I'm not sure the underlying BIRT code can handle a POST.neetu59 - Mar 13, 2009 - 11:27 PM Post subject: RE: Passing Parameter values using POST technique
What other way is there?rmcvay - Mar 14, 2009 - 03:24 AM Post subject: RE: Passing Parameter values using POST technique
GETneetu59 - Mar 16, 2009 - 08:15 PM Post subject: RE: Passing Parameter values using POST technique
can you give me an example about how to use GET for passing parameters from a jsp page in struts application to report? I have parameters in a JSP page , result.jsp which I want to pass to the reports. There is a jsp page(new_report.jsp) which was created when I added Report Capabilities to the project. How do I pass the parameters?rmcvay - Mar 16, 2009 - 10:30 PM Post subject: RE: Passing Parameter values using POST technique
Basically you name the query string parameters to match the names of the report parameters. E.g. if you have a "state" parameter on the report then the query string might start out "?state=NV".