JSP - Java Server Pages
1. @Override protected void doGet ( HttpServletRequest request , HttpServletResponse response ) throws ServletException , IOException { request .getRequestDispatcher( "login.jsp" ).forward( request , response ) ; } request.getRequestDispatcher("jsp sehifesinin adi").forward(request, response); - bu emeliyyat request ve responsu jsp sehifesine gonderir. 2. @Override protected void doPost ( HttpServletRequest request , HttpServletResponse response ) throws ServletException , IOException { try { String username = request .getParameter( "username" ) ; String password = request .getParameter( "password" ) ; User user = userService .findUserByUsernameAndPassword( username , password ) ; request .getSession().setAttribute( "loggedInUser" , user ) ; System . out .println( user ) ; } catch ( Exception e ) { System . out .println( "Some problem occurred" ) ; } ...