org.struts.velocity.demo.login
Class AccountAction

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended byorg.strutsit.architecture.struts.StrutsitActionBase
          extended byorg.struts.velocity.demo.login.AccountAction
All Implemented Interfaces:
org.strutsit.architecture.struts.StrutsitAction

public class AccountAction
extends org.strutsit.architecture.struts.StrutsitActionBase
implements org.strutsit.architecture.struts.StrutsitAction

The accountaction is called, when the user will create a new account for himself. First it looks if the account already exists. In this case an error message will provide. In the other case a new account will be created and a message will be sendet to the new user.

Demonstrates:

Since:
JDK 1.4
Version:
$Revision: 1.15 $
Author:
Manfred Wolff

Field Summary
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
AccountAction()
           
 
Method Summary
 boolean execute(org.strutsit.architecture.context.StrutsitContext context)
          Execute-Methods for Struts-It Actions.
 java.lang.String getUseCase()
          The use-case for the usecase driven approuch.
 
Methods inherited from class org.strutsit.architecture.struts.StrutsitActionBase
getService, getService, setFailure, setInput, setSucceeded
 
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, 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

AccountAction

public AccountAction()
Method Detail

execute

public boolean execute(org.strutsit.architecture.context.StrutsitContext context)
                throws java.lang.Exception
Execute-Methods for Struts-It Actions.

Specified by:
execute in interface org.strutsit.architecture.struts.StrutsitAction
Parameters:
context - The Context for this usecase
Returns:
true, if the request is fulfilled. In this case the context has to return the next step. False, if the request is not fulfilled yet.
Throws:
java.lang.Exception

getUseCase

public java.lang.String getUseCase()
The use-case for the usecase driven approuch.

Specified by:
getUseCase in interface org.strutsit.architecture.struts.StrutsitAction


Copyright © 2005 Struts-it comunity. All Rights Reserved.