FileDocCategorySizeDatePackage
Login.javaAPI DocApache Struts 2.0.9 Apps1650Mon Jul 23 13:43:00 BST 2007example

Login

public class Login extends ExampleSupport

Fields Summary
private String
username
private String
password
Constructors Summary
Methods Summary
public java.lang.Stringexecute()


        if (isInvalid(getUsername())) return INPUT;

        if (isInvalid(getPassword())) return INPUT;

        return SUCCESS;
    
public java.lang.StringgetPassword()

        return password;
    
public java.lang.StringgetUsername()

        return username;
    
private booleanisInvalid(java.lang.String value)

        return (value == null || value.length() == 0);
    
public voidsetPassword(java.lang.String password)

        this.password = password;
    
public voidsetUsername(java.lang.String username)

        this.username = username;