Sometimes you would need to summarize knowledge that you’ve leant in order to organize it in your brain. That’s why it’s a good idea to write it down so that you know that you organized knowledge you earned.
Anyways, lately I’ve been studying JavaServlet and have to because web content management system has been implemented in my client’s company and this giant web content management called “Documentum” utilizes most technologies given ever such as .Net and Java. I’ve decided to use Java Servlet and JSP to learn some business logic aspect in development.
In servlet class the precedure is as following:
1. Once servlet class is instantiated init method is called and its signature is as following:
public void init(ServletConfig config) throws ServletException
2. After servlet’s init method, service method is called by the servlet container. It has following signature:
public void service(ServletRequest request, ServletResponse response) throws ServletException, java.io.IOException
And then the best practice to deploy dynamic web pages seems to be Servlet-Beans-JSP combination.
I can set up servlet to do the database work and put the results into beans. And the JSP gets the beans from the servlet and displays it as HTML. How does it sound like? I just got to know about it today.
So many things to learn in java… sigh :^@