• Post Reply Bookmark Topic Watch Topic
  • New Topic

Get server host name  RSS feed

 
michael yue
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For jsp the server name can be obtained by using
request.getServerName()
Is there a method for knowing a server name for running ordinary java file?
Thanks
 
Carlos Failde
Ranch Hand
Posts: 84
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!