cancel
Showing results for 
Search instead for 
Did you mean: 

How to Pass a parameter from Webdynpro to JSP

Former Member
0 Kudos

Hi ,

the appplication we work on requires exchange of data between a JSP and Webdynpro java app.

we are unable to find way to send data (a parameter) from webdynpro application to a jsp. the idea is to pass on a variable like user_id to jsp and then use it on jsp to retrieve a document on portal root folder.

we have been trying to explore if HTTPServletRequest can be defined on the webdyn application and the parameter can be saved as a request variable and retrieved on JSP. (don't even know if dynpro app supports thislogic)

on the jsp we are using

response.setContentType("application/download");

response.setHeader("Content-Disposition", "attachment; filename= \"""test.pdf""\"");

but even this is not working as setContent() does not accept a string argument.

any suggestions are welcome.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Venkata

I did pass some parameter from web dynpro to jsp in one project, i don't know if there are another way to do this, but i pass as GET method.

in web dynpro, i call the url of jsp, passing the parameters that i need in the url.

Example of URL: http://myurl.com/my_application_path?name_of_parameter=value_of_parameter

And in jsp file i get the parameter value, in this way:

request.getParameter("name_of_parameter")

Regards

Marcos