This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSP and the fly likes port number in url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "port number in url" Watch "port number in url" New topic
Author

port number in url

Ashwin venkatesh
Greenhorn

Joined: Oct 16, 2006
Posts: 7
Hello Everyone,

I have developed a web application using jsp and servlets with tomcat server. the application is working fine in local network, but when i run in the browser the url is displaying the port number(http://local_ip_address:8080/application_folder/starting_jsp ) which should not happen.even when i specify the IP address should i need to give the port number.
I want this application to run in IIS server also, so i came to know that i should download jspisapi.dll and include it in IIS configuration to run jsp.

please help me in this regard at the earliest.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42356
    
  64
I'm confused.
the application is working fine in local network, but when i run in the browser

In the local network you're running it in a browser too, right? You can run the server with any port you like, and the URL will reflect that. Port 80 is most common, because -being the default port- you can leave out the port number.

This has nothing to do with the kind of server you're using; using IIS (with a servlet engine of some kind) works the same way as, say, Tomcat. (Although it can be hard to make Tomcat work on port 80).


Ping & DNS - my free Android networking tools app
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: port number in url