Page tree
Skip to end of metadata
Go to start of metadata

Author: Fabian Eidner

Access WebDynpro URL parameters programaticly 

Here I will show you how to acces all the url parameters which are available inside your WebDynpro application.

You will need this in some cases for example to get the pcd location of an object or the current session id also the external session id. With this information you are able to build up your own print view and other stuff.

Map map = WDProtocolAdapter.getProtocolAdapter().getRequestParameterMap();
Iterator iter = map.keySet().iterator();
while (iter.hasNext())
	String key = "";
	String value = "";
		key = (String);
		value = WDProtocolAdapter.getProtocolAdapter().getRequestParameter(key);
	}catch(Exception e)
		key = "error";
		value = "error";
	wdComponentAPI.getMessageManager().reportWarning(key + ": "+ value);

kind regards