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.
Dear Friends I am using Java Webserver to inplement my Servlets and JSP i wanted to know as to on which port dose JSP run correctly 9091,9090 or 8080 in my case it is runnin properly on 8080 wher as servlets on 9091 can some 1 please clear Amit
Originally posted by Amit Roy: Dear Friends I am using Java Webserver to inplement my Servlets and JSP i wanted to know as to on which port dose JSP run correctly 9091,9090 or 8080 in my case it is runnin properly on 8080 wher as servlets on 9091 can some 1 please clear Amit
hi amit As far i know u can run your servlet at 9090 port,and also on 8080 if you started your webservice by logging in administration of jws. for further question u can contact me firstname.lastname@example.org
Servlets and JSPs can run on any port you choose. For production use on a real internet site you should use port 80, as this is the default port for the HTTP protocol. For development use you can use any port, but one above 1000 is probably a good choice - ports below 1000 are reserverd for specific protocols, and may already be in use on your machine. A lot of servlet containers come set up to use port 8080, as that is above 1000 and will allow both a regular webserver to run on port 80, and your servlet server on port 8080. Look at the configuration details for your server to see how to set the port. On one machine I use, for example, webservers on ports 80, 9876, 10603, 10700, 10701, 10711 and 10720, and servlet servers on ports 24761 and 24762. The machine will accept HTTP requests to any of these ports.