It's not a secret anymore!
The moose likes JSP and the fly likes how to remove the port number..... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "how to remove the port number....." Watch "how to remove the port number....." New topic

how to remove the port number.....

Yegappan Balasubramanian

Joined: Nov 19, 2001
Posts: 13
Hi all,
I am using Tomcat 4.0 server to run my JSP application.When i tried to run the application,i have to give the URL like this
but actually i want the URL to be given like this
Also i dont want to give that http in the URL.
I would like to give the URL like this
Any solution for the above???
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17011

That kind of question is more likely to get a fast answer in the Apache/Tomcat forum. However, in answer to your questions:
"http:" is required to tell the server what protocol you will be using. Other common ones are "https:" (secure http) and "ftp:" (file transfer protocol). However, most web browsers will automatically assume/negotiate, so the user typing in a URL can skip that part. It IS however, good practice to include it in hyperlinks and other stuff you send out, as a matter of clarity and to avoid inexplicable errors if the assumption process goes wrong.
Browsers also assume they will be talking to the user's TCP/IP port 80 when using the "http:" protocol. In Tomcat's server.xml file you'll find a way to specify port 80 instead of 8080. 8080 is a popular port for "testing" servers and such, as is 8008.
So actually, if I type in "" to by browser's navbar, what is REALLY being processed is ""

Customer surveys are for companies who didn't pay proper attention to begin with.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: how to remove the port number.....
jQuery in Action, 3rd edition