Skip to Content
0
Former Member
May 21, 2009 at 11:32 AM

How to Pass a parameter from Webdynpro to JSP

45 Views

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.