1 37 38 package com.sun.j2ee.blueprints.consumerwebsite.actions; 39 40 import javax.servlet.http.*; 42 43 import com.sun.j2ee.blueprints.signon.web.SignOnFilter; 45 import com.sun.j2ee.blueprints.signon.SignOnFacade; 46 47 import com.sun.j2ee.blueprints.waf.controller.Event; 49 import com.sun.j2ee.blueprints.waf.controller.web.html.*; 50 51 import com.sun.j2ee.blueprints.consumerwebsite.*; 53 import com.sun.j2ee.blueprints.consumerwebsite.exceptions.*; 54 59 public class CreateSignOnHTMLAction extends HTMLActionSupport { 60 61 public static final String SIGNON_CREATE = "createSignOn"; 62 public static final String PASSWD_CHECK = "checkPassword"; 63 64 72 public Event perform(HttpServletRequest request) 73 throws HTMLActionException { 74 String userId = request.getParameter("j_username"); 75 String password = request.getParameter("j_password"); 76 request.getSession().setAttribute(AdventureKeys.SIGN_ON_TEMP_USERNAME, userId); 78 request.getSession().setAttribute(AdventureKeys.SIGN_ON_TEMP_PASSWORD, password); 79 return null; 80 } 81 } 82 | Popular Tags |