Identify server name for use in output template

Hi,

I’ve got a service with an HTML output template, and I want to put a link in the template that links back to the original service homepage. But I don’t want to hard code the server name and port into the output template.

I’ve already discovered the getSystemProperty service in the PSUtilities package, and this lets me retrieve the port number, but not the server name.

Can anyone tell me how to retrieve the server name, i.e. the server that the IS is running on?

Thanks in advance,
Josh

write a java service (Hint: look @ InetAddress java API)

Take a look at this thread for some possible approaches.

Mark