java.lang.Object
org.apache.struts.action.Action
com.RuntimeCollective.webapps.action.TrackedUserRegisterAction
- public class TrackedUserRegisterAction
- extends org.apache.struts.action.Action
Implementation of Action that registers a new TrackedUser on the system.
- Version:
- $Id: TrackedUserRegisterAction.java,v 1.3 2003/09/30 15:13:08 joe Exp $
| Methods inherited from class org.apache.struts.action.Action |
addErrors, addMessages, execute, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrackedUserRegisterAction
public TrackedUserRegisterAction()
perform
public org.apache.struts.action.ActionForward perform(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- Checks if the given email or username exists in the database.
The following local Forwards are returned:
failureEmail - the email address already exists
failure - the username already exists, or there is another problem
success - the user has been registered successfully.
successLogin - the user has typed in an email address,
loginName and password that all match an existing user,
so they have been logged in
Alternatively, if a URL String exists on the session under
com.RuntimeCollective.webapps.bean.LoginCookie.RETURN_URL_NAME, this will
be returned instead of success.
Error messages:
error.db.connection - if it was not possible to connect to the database.
error.user.loginNameExists - if the loginName already exists
error.user.exist - if the email already exists
error.user.emailExists - the email exists with a *different* loginName.
error.user.userExists - if the email *and* loginName alread exist