Advertisement
ballchaichana

signature

Aug 30th, 2018
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.93 KB | None | 0 0
  1. package th.in.oneauth.servlet;
  2.  
  3. import java.io.IOException;
  4. import javax.servlet.ServletException;
  5. import javax.servlet.annotation.WebServlet;
  6. import javax.servlet.http.HttpServlet;
  7. import javax.servlet.http.HttpServletRequest;
  8. import javax.servlet.http.HttpServletResponse;
  9.  
  10.  
  11. @WebServlet("/signature")
  12. public class SignatureProfileServlet extends HttpServlet {
  13.     private static final long serialVersionUID = 1L;
  14.     public static final String PROFILE_NAME = "profilename";
  15.     public static final String SIGNING_URL = "dashboard.jsp?reqp=signing";
  16.        
  17.  
  18.  
  19.  
  20.     protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
  21.         // TODO Auto-generated method stub
  22.         String profilename = request.getParameter(PROFILE_NAME);
  23.         request.getSession().setAttribute("profileName", profilename);
  24.         request.getRequestDispatcher(SIGNING_URL).forward(request, response);
  25.        
  26.        
  27.        
  28.     }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement