on 08-12-2004 8:17 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can find all you need here:
WDWebContextAdapter.getWebContextAdapter().getRequestParameterMap()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.