cancel
Showing results for 
Search instead for 
Did you mean: 

How process HTTP-parameters in Web Dynpro?

jens_hottendorf
Explorer
0 Kudos

Hello,

as a beginner in Web Dynpro I would like to know if and how it's possible to read http-parameters, e.g. those of "javax.servlet.http.HttpServletRequest" in a WD component..

When I call a WD application by a URL, it could be done from another SAP-Web application where the Request-parameters have been filled - and I want to display/process the contents in WD.

Hope there is a solution for that -

Regards,

Jens

Accepted Solutions (1)

Accepted Solutions (1)

cand1
Advisor
Advisor
0 Kudos

Hi Jens,

you can access HTTP parameters via the WDWebContextAdapter:

http://help.sap.com/javadocs/NW04/current/wd/com/sap/tc/webdynpro/services/sal/adapter/api/IWDWebCon...

You can call in wdDoInit() for instance

String Name = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("parameter-name");

HTH

Daniel

Answers (1)

Answers (1)

SRudra
Contributor
0 Kudos

hi,

you could create a session object to pass parameters like we do in servlets. the parameters could be read from webdynpro component.

regds,

sukanta rudra