Results 1 to 4 of 4
  1. #1
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    6

    Default [SOLVED] Show Server and execution environment information

    in php, we can you var_dump/print_r($_SERVER) to print out Server and execution environment information.
    i would like to ask... how to do that in java? use System. getProperties();?

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Using Servlet you can do that. ServletRequest class has methods such as getServerName(), getServerPort() ....

  3. #3
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    6

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

Similar Threads

  1. Bitgate Server Software Environment 0.6.0
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 10-25-2007, 04:39 PM
  2. Bitgate Server Software Environment 0.6.0
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 10-23-2007, 01:36 PM
  3. Bitgate Server Software Environment 0.5.3
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 09-25-2007, 12:18 PM
  4. Bitgate Server Software Environment 0.4.3
    By levent in forum Java Software
    Replies: 0
    Last Post: 08-06-2007, 06:03 PM
  5. Bitgate Server Software Environment 0.3.4
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-21-2007, 10:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •