View Javadoc
1 /* 2 * Demosys. 3 * 4 * Terms of license - http://opensource.org/licenses/apachepl.php 5 */ 6 package org.demosys.web.login; 7 import javax.servlet.http.HttpServletRequest; 8 import org.apache.struts.action.ActionForm; 9 import org.apache.struts.action.ActionMapping; 10 import org.demosys.web.login.LoginView; 11 /*** 12 * Struts From to create a User. 13 */ 14 public class LoginForm extends ActionForm { 15 protected LoginView _view = new LoginView(); 16 17 public void reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest) { 18 setUserName(null); 19 setPassword(null); 20 } 21 22 23 public String getUserName() { 24 return _view.getUserName(); 25 } 26 27 28 public void setUserName(String userName) { 29 _view.setUserName(userName); 30 } 31 32 33 public void setPassword(String password) { 34 _view.setPassword(password); 35 } 36 37 38 public String getPassword() { 39 return _view.getPassword(); 40 } 41 42 43 public LoginView toUserView() { 44 return (LoginView)_view.clone(); 45 } 46 }

This page was automatically generated by Maven