Running web applications
Hi, I just started learning java few minutes ago :)
I am especially interested in webapplications and thats why I moved straight to them.
I made a small webapp, everything seems fine, it compiles etc. but I cant open it in anyway, it automatically opens http://localhost/webapplication1, and it just says "Connecting to localhost".. I dont know what to do here,it is localhost so it cant be router or anything.. no firewall.. What should I do?
Using NetBeads IDE 5.5.1, winXP, tomcat 5.5.17.
Everything is default, nothing is configured/modified.
[577 byte] By [
J_Ga] at [2007-11-27 10:12:02]

> I am especially interested in webapplications and thats why I moved straight to them.
My opinion: not the wisest choice. I suggest you take a step back and learn the core of the java language first and write some simple client side applications before moving on to the far more difficult to manage web environment. There are some basic concepts in object oriented development that you should know before touching servlets, JSP's and web frameworks. I am talking polymorphism, encapsulation, inheritance, interfaces and abstract classes, etc. Then there are some basic java concepts that may thoroughly confuse you if you do not know about them, such as the concept of the "bean", the "classpath", "java packages", what a "jar" is, etc.
> http://localhost/webapplication1
I think that should be:
http://localhost:8084/webapplication1
By default the tomcat server bundled with netbeans listens on that port. If not you can also try port 8080, which is the default tomcat port.