Tag: java servlets
Methods in javax.servlet.http.HttpServlet
As we discussed in the earlier articles, we should extend our servlet class with HttpServlet abstract class in order to get protocol dependent services. When ever we make request to the servlet the following methods will be called…
Java Servlet login Example In Eclipse
Let us discuss one simple login application using servlet and jsp, friends please refer previous articles if you still have any doubts regarding strvlets flow 🙂 Directory Structure Files Required OnServletLogin.java index.html web.xml index.html <form action=”login” method=”post”> <table> <tr>…
Difference between ServletConfig and ServletContext in Java
Let us see the main differences between ServletConfig and ServletContext, which is very popular interview question as well 🙂 ServletConfig ServletConfig available in javax.servlet.*; package ServletConfig object is one per servlet class Object of ServletConfig will be created during…