package com.careerServices.MainApp;

import java.io.IOException;
import javax.servlet.ServletException;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class ServletAdminHome extends HttpServlet 
{
	private static final long serialVersionUID = 1L;

    public ServletAdminHome() 
    {
        super();
    }
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException 
	{
		doPost(request, response);
	}
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException 
	{
		request.getRequestDispatcher("/View/adminHome.jsp").forward(request, response);
	}

}

@@ -1,69 +1,73 @@
-package com.careerServices.MainApp;%0D%0A%0D%0Aimport java.io.IOException
+import java.io.PrintWriter;%0D%0A%0D%0Aimport javax.servlet.RequestDispatcher
 ;%0D%0Ai
@@ -705,87 +705,672 @@
 %0D%0A%09%09
-request.getRequestDispatcher(%22/View/adminHome.jsp%22).forward(request, response);
+ response.setContentType(%22text/html%22);  %0D%0A%09%09    PrintWriter out = response.getWriter();  %0D%0A%09%09          %0D%0A%09%09    String n=request.getParameter(%22username%22);  %0D%0A%09%09    String p=request.getParameter(%22psw%22);  %0D%0A%09%09          %0D%0A%09%09    if(ServletLogin.validate(n, p))%7B  %0D%0A%09%09        RequestDispatcher rd=request.getRequestDispatcher(%22/View/adminHome.jsp%22);  %0D%0A%09%09        rd.forward(request,response);  %0D%0A%09%09    %7D  %0D%0A%09%09    else%7B  %0D%0A%09%09        out.println(%22USERNAME or PASSWORD error!!%5Cn%22);  %0D%0A%09%09        out.println(%22Try Again!%22);%0D%0A%09%09        RequestDispatcher rd=request.getRequestDispatcher(%22/View/login.jsp%22);  %0D%0A%09%09        rd.include(request,response);  %0D%0A%09%09    %7D  %0D%0A%09%09           
 %0D%0A%09%7D

Update ServletAdminHome.java