| Author |
Message |
|
|
Post subject: Passing Parameter values using POST technique
Posted: Mar 04, 2008 - 01:37 PM
|
|
Registered Member

Joined: Jan 10, 2008
Posts: 14
|
|
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
Khaled |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Passing Parameter values using POST technique
Posted: Mar 04, 2008 - 06:22 PM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23824
|
|
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. |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: RE: Passing Parameter values using POST technique
Posted: Mar 13, 2009 - 10:25 PM
|
|
Joined: Mar 13, 2009
Posts: 7
|
|
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
Neeti |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Passing Parameter values using POST technique
Posted: Mar 13, 2009 - 10:37 PM
|
|
Registered Member


Joined: Sep 17, 2004
Posts: 217
|
|
I'm not sure the underlying BIRT code can handle a POST. |
_________________ Ray
Just another MyEclipse user
|
| |
|
|
|
 |
|
|
Post subject: RE: Passing Parameter values using POST technique
Posted: Mar 13, 2009 - 11:27 PM
|
|
Joined: Mar 13, 2009
Posts: 7
|
|
|
|
|
 |
|
|
Post subject: RE: Passing Parameter values using POST technique
Posted: Mar 14, 2009 - 03:24 AM
|
|
Registered Member


Joined: Sep 17, 2004
Posts: 217
|
|
GET |
_________________ Ray
Just another MyEclipse user
|
| |
|
|
|
 |
|
|
Post subject: RE: Passing Parameter values using POST technique
Posted: Mar 16, 2009 - 08:15 PM
|
|
Joined: Mar 13, 2009
Posts: 7
|
|
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? |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Passing Parameter values using POST technique
Posted: Mar 16, 2009 - 10:30 PM
|
|
Registered Member


Joined: Sep 17, 2004
Posts: 217
|
|
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". |
_________________ Ray
Just another MyEclipse user
|
| |
|
|
|
 |
|
|