on 03-28-2008 12:58 PM
Hello,
can anyone tell me how to read out the url (which can be seen at the browser window) in web dynpro.
I only use reading out ulr parameters at the moment like:
WDWebContextAdapter.getWebContextAdapter().getRequestParameter("guid");
...but now, I want to read out the whole url (with/without parameters).
Thanks in advance.
Mathias
Hi ,
U can get the URL parameters by using this code:
private String getRequestParameter(String paramName)
{
String strValue= "";
try
{
strValue= = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter(paramName);
}
catch (Exception e){}
return strValue;
}
String returnParam = this.getRequestParameter("PARAM__NAAME__ONE");
(PARAM__NAAME__ONE;Is the parameter in the url)
Reagrds,
Lavanya.G
Edited by: Lavanya Goriga on Mar 31, 2008 7:12 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for this information Lavanya,
but this is something, I already know (if you see upon to my first thread text).
I need the whole URL and not only a parameter of that.
For example:
...so, I need "/community [original link is broken]"...... at least. I`ld not be interested only in "threadID" for example.
Thanks,
Mathias.
Hi,
Refer to this thread - [ How to get Portal URL -- http://server:port/irj - from WebDynpro code |;
Regards
Srikanth KV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.