This is part II of jsp and servlets login example. Check Part I here.
Step 4) Now, we need to create a Servlet file for the redirection of the jsp pages. In the src folder under the package code2java, add the Servlet file and name it as LoginServlet. As discussed earlier this servlet file will get the user details from the Bean file and then it will create a Session for that user only if the user is a valid user. And accordingly it will redirect to the respective jsp pages. You can use the default code which Eclipse generates while Servlet creation, the only change you need to do is in doGet() method. Continue reading “Login Example: JSP and Servlets: Part II.”
In my previous article, we have seen how to install the Apache Server. Now, after installation we can confirm that whether the installation was a successful one or not, because many times even after successful installation the server doesnot starts or it doesn’t work. So lets check the it before using it with any script. Continue reading “Check Apache Server after Installation.”
This is one of my tutorials regarding the HTTP Apache server. Most of you may have faced the problem such as make_sock : could not bind to address 0.0.0.0:80 while installing HTTP Apache Server. Continue reading “HTTP Apache Error: make_sock: could not bind to address 0.0.0.0:80”