cancel
Showing results for 
Search instead for 
Did you mean: 

How to read the command line parameter?

Former Member
0 Kudos

Good morning community,

Is it possible to read out the parameter string in a web dynpro program? e.g. "http://localhost/.../WDAPP?param=test". How can I reach the string following the question mark? Regards and thank's for help, Robert.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Robert,

this is actually called URL parameter You get it like this for example in wdDoInit() of the component controller

String paramContent = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("param");
wdComponentAPI.getMessageManager().reportSuccess("Parameter param = " + paramContent);

The reportSucess() is just for testing of course. Multiple URL parameters are concatted by "...APP?night=dark<b>&</b>day=bright"

Hope that helps.

Best regards

Stefan

Answers (2)

Answers (2)

Former Member
0 Kudos

If you have control on the parameter names try this thread

Former Member
0 Kudos

Ok thank's a lot. I guess that will surely help.

Former Member
0 Kudos

You can find all you need here:

WDWebContextAdapter.getWebContextAdapter().getRequestParameterMap()