pl.agh.iosr.ballamigos.webapp.beans
Class LoginBean

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by pl.agh.iosr.ballamigos.webapp.beans.LoginBean
All Implemented Interfaces:
java.io.Serializable

public class LoginBean
extends org.apache.struts.action.ActionForm

An ActionForm class representing player's login and password. It allows validation of this data.

Author:
Piotr
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
LoginBean()
           
 
Method Summary
 java.lang.String getLogin()
           
 java.lang.String getPassword()
           
 void setLogin(java.lang.String login)
           
 void setPassword(java.lang.String password)
           
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Validates the login and password provided by the user.
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginBean

public LoginBean()
Method Detail

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                      javax.servlet.http.HttpServletRequest request)
Validates the login and password provided by the user. Communicates with the server to check the data in the game database.

Overrides:
validate in class org.apache.struts.action.ActionForm
Parameters:
action - mapping
request -
Returns:
errors if the credentials are incorrect or there is some other kind of error

getLogin

public java.lang.String getLogin()

setLogin

public void setLogin(java.lang.String login)

getPassword

public java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String password)


Copyright © 2006 . All Rights Reserved.