Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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?
Similar Threads
URL rewriting in Struts1
Please help about picture path.
Picking up parameters in the URL
Yet another tomcat problem
How to change my HostName ?