File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes How to change my host name? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to change my host name?" Watch "How to change my host name?" New topic

How to change my host name?

Venki Ananth
Ranch Hand

Joined: Dec 17, 2008
Posts: 32
An interesting doubt!!! I am just accessing my J2EE application using this url like "http://localhost(or ipaddress)/Myproject"

Is there anyway to change my host name without changing my system name ?
I like to change "http://newname/Myproject". Any other settings available on service side. I'm using Tomcat5.5 in NetBeans.
[ December 22, 2008: Message edited by: Venki Ananth ]

David Newton

Joined: Sep 29, 2008
Posts: 12617

Not really a Struts question.

If nothing else you can add an entry to your hosts file.
I agree. Here's the link:
subject: How to change my host name?