Request forward from servlet to JSP/HTML :
http://www.java-tips.org/java-ee-tips/javaserver-pages/how-to-forward-requests-from-servlet-t.html
http://www.codestyle.org/java
http://www.codestyle.org/java/servlets/faq-API.shtml
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Servlets9.html
servlet and jsp book – Head First – download
————————————————–
http://knowfree.net/2008/05/23/head-first-servlets-and-jsp-2nd-edition.kf – jsp & servlet headfirst
http://knowfree.net/2008/04/17/head-first-servlets-and-jsp-passing-the-sun-certified-web-component-developer-exam.kf
General:
———–
http://www.tech-faq.com/j2ee.shtml
Archive for the ‘Servlet’ Category
Servlets
Posted in Servlet on November 27, 2008 | Leave a Comment »
Introduction about http
Posted in Servlet, tagged http, introduction about http on November 25, 2008 | Leave a Comment »
What does WebServer do:
A WebServer takes the clients request and gives something back to the client.
Server responds with the status code.
a. 404 – Not found error. – The server cannot find the thing what the client asked.
b. 200 – OK. Server successfully send the response to the client what it is expecting.
What does Web Client [...]
Servlet life cycle
Posted in Servlet on November 20, 2008 | Leave a Comment »
Servlet Life Cycle:
init()
service()
destroy()
§ container load the servlet class.
§ Container Instantiate servlet. It runs the constructor. The constructor is default one given by compiler.
§ Container calls the init() method after Servlet Instance is created. It will be called only once in servlet lifecycle, must complete before container call the service().
§ Then container call the service() method.
§ [...]
Web app Architecture
Posted in Servlet, tagged container on November 20, 2008 | Leave a Comment »
Container:
Container helps servlets.
It instantiate the servlet or make a thread to handle the request
It calls the servlet’s doGet() or doPost() method
It create HTTP request and response object to the servlet.
It manages the life cycle of servlet.
It finds the URL in DD to find the correct servlet for the request.
[...]
Attribute and Listener
Posted in Servlet on October 23, 2008 | 1 Comment »
Attributes and Listeners:
Servlet init parameter:
In order to hardcode the value in the servlet, we can put(configure) that value in the Deployment Descriptor(DD). For example
Printwriter out = response.getWriter();
Out.printl(boo@gmail.com);
Instead of hard coding like this we can mention this value in DD, by that without touching the servlet, he can change the value in DD [...]