MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
dr_khaledcs
Post subject: Passing Parameter values using POST technique  PostPosted: Mar 04, 2008 - 01:37 PM
Registered Member
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
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject: RE: Passing Parameter values using POST technique  PostPosted: Mar 04, 2008 - 06:22 PM
Registered Member
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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
neetu59
Post subject: RE: Passing Parameter values using POST technique  PostPosted: 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
 
 View user's profile Send private message  
Reply with quote Back to top
rmcvay
Post subject: RE: Passing Parameter values using POST technique  PostPosted: Mar 13, 2009 - 10:37 PM
Registered Member
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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
neetu59
Post subject: RE: Passing Parameter values using POST technique  PostPosted: Mar 13, 2009 - 11:27 PM



Joined: Mar 13, 2009
Posts: 7

What other way is there?
 
 View user's profile Send private message  
Reply with quote Back to top
rmcvay
Post subject: RE: Passing Parameter values using POST technique  PostPosted: Mar 14, 2009 - 03:24 AM
Registered Member
Registered Member


Joined: Sep 17, 2004
Posts: 217

GET

_________________
Ray
Just another MyEclipse user
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
neetu59
Post subject: RE: Passing Parameter values using POST technique  PostPosted: 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?
 
 View user's profile Send private message  
Reply with quote Back to top
rmcvay
Post subject: RE: Passing Parameter values using POST technique  PostPosted: Mar 16, 2009 - 10:30 PM
Registered Member
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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits