on 04-08-2005 1:28 PM
Hello everybody,
I want to get server name on which my application is deployed in webdynpro application in coding. So any method or procedure to get server name? If anybody knows then please help its very urgent.
Thanks in Advance,
Bhavik
Hi Bhavik ,
Please find the code below
HttpServletRequest request =Task.getCurrentTask()
.getWebContextAdapter()
.getHttpServletRequest();
String ServerName=request.getServerName();
String port=request.getServerPort();
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhavik,
again: you utilize internal API. Read the SDN WebLog Never Ever Hijack Internal Web Dynpro Classes and Interfaces (/people/bertram.ganz/blog/2005/02/02/never-ever-hijack-internal-web-dynpro-classes-and-interfaces) concerning how to use the public Web Dynpro API without losing backward compatability.
Unfortunately there is no public API available in NW04 for accessing this information.
Regards, Bertram
Hi,
InetAddress only gives server name.
What if I need complete path as
http://<servername>.<domain>:<portname>;
I got <servername>.<domain> by getCanonicalHostName method. I need port number as well.
is there anyway we can track this path?
Ashutosh
Hi,
... or SELECT * FROM "SYS"."GLOBAL_NAME", then parse.
greetings
Walter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
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.