Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package th.in.oneauth.servlet;
- import java.io.IOException;
- import javax.servlet.ServletException;
- import javax.servlet.annotation.WebServlet;
- import javax.servlet.http.HttpServlet;
- import javax.servlet.http.HttpServletRequest;
- import javax.servlet.http.HttpServletResponse;
- @WebServlet("/signature")
- public class SignatureProfileServlet extends HttpServlet {
- private static final long serialVersionUID = 1L;
- public static final String PROFILE_NAME = "profilename";
- public static final String SIGNING_URL = "dashboard.jsp?reqp=signing";
- protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
- // TODO Auto-generated method stub
- String profilename = request.getParameter(PROFILE_NAME);
- request.getSession().setAttribute("profileName", profilename);
- request.getRequestDispatcher(SIGNING_URL).forward(request, response);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement