Skip to Content
avatar image
Former Member

Getting the server name

Hi,

Does anyone know how to get the machine name of the portal server within the Java component?

Thanks,

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    May 14, 2004 at 07:54 AM

    what you say is to receive the server name in java code?

    In this case you should write:

    request.getServerName();

    Any other I can't understand you question.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      The method getServerName() is in HttpServletRequest. So you should first get HttpServletRequest from IPortalComponentRequest using getServletRequest() and then use getServerName().

      HTH

      Lakshmi