java.lang.Object
org.apache.struts.action.Action
com.RuntimeCollective.webapps.action.EditTrackedUserAction
- public class EditTrackedUserAction
- extends org.apache.struts.action.Action
Implementation of an Action that edits a user's details.
- Version:
- $Id: EditTrackedUserAction.java,v 1.4 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 |
EditTrackedUserAction
public EditTrackedUserAction()
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 username exists in the database and replaces
that user's details with the new ones.
The following local Forwards are returned:
failure - the username already exists, or there is another problem
success - the user's details were edited and saved successfully.
Error messages:
error.db.connection - if it was not possible to connect to the database.
error.user.exist - if the username already exists