Mario Alcantara wrote:(...)You can read the Head First Servlets & JSP by Bryan Basham, Kathy Sierra, Bert Bates second edition book. It´s clear and easy to understand
that was one of my first thoughts; later i dropped the idea because it looked to me a lot like exam oriented, and as i'm a pure amateur...
Jayesh A Lalwani wrote:GET and POST methods are part of the HTTP protocol which is the standard protocol for all communication on the web. The protocol defines how the client sends a request to the server and how the server responds to the request. What the J2EE web container does for you is hide the nitty gritty of the HTTP protocol from you. The J2EE server (tomcat/JBoss,etc) will take care of things like listening to incoming sockets from browsers, marshalloing the request and response, etc etc,and "wraps" the request and response in the HttpServletRequest and HttpServletResponse API.
The servlet that you implement execute inside the container, and whenever the container receives a request, it will parse the request and construct an HttpServletRequest and call your servlet. You servlet will perform the business logic and put the response in HttpServletResponse. After your method returns the container will marshal your response as a HTTP response and send it back to the client.
that's perfect!
as to Amit's links, i have to say i am in the process of reading the 6th ed of java ee tutorial, in pdf, which, in the case you point to, is quite diferent from your 5th ed (note the tut has more then 1000 pages and i'm still around page 100)
but what really clarified my head and showed (finally) how things work behind the scenes was the onjava article: now i have a much clearer idea of what's going on and also i understand what i didnt when i first wrote this topic
thanks to everyone who helped me