net.sourceforge.stripes.examples.bugzooky
Class LoginActionBean

java.lang.Object
  extended by net.sourceforge.stripes.examples.bugzooky.BugzookyActionBean
      extended by net.sourceforge.stripes.examples.bugzooky.LoginActionBean
All Implemented Interfaces:
net.sourceforge.stripes.action.ActionBean

public class LoginActionBean
extends BugzookyActionBean

An example of an ActionBean that uses validation annotations on fields instead of on methods. Logs the user in using a conventional username/password combo and validates the password in the action method.

Author:
Tim Fennell

Constructor Summary
LoginActionBean()
           
 
Method Summary
 String getPassword()
          The password of the user trying to log in.
 String getTargetUrl()
          The URL the user was trying to access (null if the login page was accessed directly).
 String getUsername()
          The username of the user trying to log in.
 net.sourceforge.stripes.action.Resolution login()
           
 void setPassword(String password)
          The password of the user trying to log in.
 void setTargetUrl(String targetUrl)
          The URL the user was trying to access (null if the login page was accessed directly).
 void setUsername(String username)
          The username of the user trying to log in.
 
Methods inherited from class net.sourceforge.stripes.examples.bugzooky.BugzookyActionBean
getContext, populateBug, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginActionBean

public LoginActionBean()
Method Detail

setUsername

public void setUsername(String username)
The username of the user trying to log in.


getUsername

public String getUsername()
The username of the user trying to log in.


setPassword

public void setPassword(String password)
The password of the user trying to log in.


getPassword

public String getPassword()
The password of the user trying to log in.


getTargetUrl

public String getTargetUrl()
The URL the user was trying to access (null if the login page was accessed directly).


setTargetUrl

public void setTargetUrl(String targetUrl)
The URL the user was trying to access (null if the login page was accessed directly).


login

public net.sourceforge.stripes.action.Resolution login()


© Copyright 2005, Stripes Development Team.