Class LoginForm

  • All Implemented Interfaces:
    java.io.Serializable

    public class LoginForm
    extends org.apache.struts.action.ActionForm
    The main form, using for editing constraints
    Author:
    Mark Woodbridge
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String password  
      protected java.lang.String returnToString  
      protected java.lang.String username  
      • Fields inherited from class org.apache.struts.action.ActionForm

        multipartRequestHandler, servlet
    • Constructor Summary

      Constructors 
      Constructor Description
      LoginForm()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPassword()
      Gets the value of password
      java.lang.String getReturnToString()
      Return the returnToString set by setReturnToURL().
      java.lang.String getUsername()
      Gets the value of username The user name is always returned in LOWER CASE.
      void reset​(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
      void setPassword​(java.lang.String password)
      Sets the value of password
      void setReturnToString​(java.lang.String returnToString)
      Sets the URL to return to if the login is successful.
      void setUsername​(java.lang.String username)
      Sets the value of username
      org.apache.struts.action.ActionErrors validate​(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
      • Methods inherited from class org.apache.struts.action.ActionForm

        getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • username

        protected java.lang.String username
      • password

        protected java.lang.String password
      • returnToString

        protected java.lang.String returnToString
    • Constructor Detail

      • LoginForm

        public LoginForm()
    • Method Detail

      • getUsername

        public java.lang.String getUsername()
        Gets the value of username The user name is always returned in LOWER CASE.
        Returns:
        the value of username
      • setUsername

        public void setUsername​(java.lang.String username)
        Sets the value of username
        Parameters:
        username - value to assign to username
      • getPassword

        public java.lang.String getPassword()
        Gets the value of password
        Returns:
        the value of password
      • setPassword

        public void setPassword​(java.lang.String password)
        Sets the value of password
        Parameters:
        password - value to assign to password
      • setReturnToString

        public void setReturnToString​(java.lang.String returnToString)
        Sets the URL to return to if the login is successful.
        Parameters:
        returnToString - the path to return to after log in
      • getReturnToString

        public java.lang.String getReturnToString()
        Return the returnToString set by setReturnToURL().
        Returns:
        the the path to return to after log in
      • validate

        public org.apache.struts.action.ActionErrors validate​(org.apache.struts.action.ActionMapping mapping,
                                                              javax.servlet.http.HttpServletRequest request)
        Overrides:
        validate in class org.apache.struts.action.ActionForm
      • reset

        public void reset​(org.apache.struts.action.ActionMapping mapping,
                          javax.servlet.http.HttpServletRequest request)
        Overrides:
        reset in class org.apache.struts.action.ActionForm