Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.webapps.action
Class EditTrackedUserAction  view EditTrackedUserAction download EditTrackedUserAction.java

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended bycom.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 $

Field Summary
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
EditTrackedUserAction()
           
 
Method Summary
 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)
          Checks if the given username exists in the database and replaces that user's details with the new ones.
 
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
 

Constructor Detail

EditTrackedUserAction

public EditTrackedUserAction()
Method Detail

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