cancel
Showing results for 
Search instead for 
Did you mean: 

Read whole URL string from Web Dynpro

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

former_member365727
Active Contributor
0 Kudos

Hi,

Refer to this thread - [ How to get Portal URL -- http://server:port/irj - from WebDynpro code |;

Regards

Srikanth KV

former_member197348
Active Contributor
0 Kudos

Hi,

Check this [thread|;

Message 3, 4 may be useful to you.

regards,

Siva

Former Member
0 Kudos

Hello Siva,

thanks for your fast response. But unfortunatelly this is no solution for me.

No one of the WDURLGenerator-methods seems to deliver me the browser url.

Can you give me an other solution?

Mathias