cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the Server name only?

Former Member
0 Kudos

Hello,

I would like to get this part of server's URL: "http://<host_name>"

I am familiar with the Object WDURLGenerator but I don't see a method to do that, all the methods require manipulating the received String. Is there a method to get only the part I've mentioned?

Roy

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

String sysname = System.getProperty("SAPSYSTEMNAME");

String hostname = System.getProperty("j2ee.dbhost");

will give the server name..then u can say http://<hostname>.

Former Member
0 Kudos

10X Bharathwaj, quick and effective as usual

Roy

Answers (0)