cancel
Showing results for 
Search instead for 
Did you mean: 

Getting the details of hostname and password in webdynpro application

Former Member
0 Kudos

Hi Friends,

In my webdynpro application i need to get the host name and password of the portal. To achieve this i have used the following code

<b>WDDeployableObjectPart dop = wdComponentAPI.getDeployableObjectPart();

String path = WDURLGenerator.getAbsoluteWebResourceURL(dop, "test.html");

int ind = path.indexOf("//");

ind = path.indexOf(":",ind);

ind = path.indexOf("/",ind);

path = path.substring(0,ind);</b>

This code is working fine when i run my application directly by deploying and running.

I created the webdynpro iview in the portal and try to run the application there my application is not getting the host name and password.

I think that WDDeployableObjectPart only works when we deploy and run the application. If so, how can we get the details of the host name and port number in webdynpro iview also.

Could you people look into the issue and reply me a helpful solution.

Thanks in advance

Sandeep Kumar Bonam

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Take a look at thread.

What's "test.html" here?

Regards,

Satyajit.