facebook

Passing Parameter values using POST technique

  1. MyEclipse Archived
  2.  > 
  3. MyEclipse Reports
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #282395 Reply

    dr_khaledcs
    Member

    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

    #282427 Reply

    Riyad Kalla
    Member

    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.

    #296039 Reply

    neetu59
    Member

    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

    #296042 Reply

    rmcvay
    Member

    I’m not sure the underlying BIRT code can handle a POST.

    #296045 Reply

    neetu59
    Member

    What other way is there?

    #296051 Reply

    rmcvay
    Member

    GET

    #296156 Reply

    neetu59
    Member

    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?

    #296167 Reply

    rmcvay
    Member

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

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Passing Parameter values using POST technique

You must be logged in to post in the forum log in