com.finalist.util.struts
Class StrutsUtil

java.lang.Object
  extended bycom.finalist.util.struts.StrutsUtil

public class StrutsUtil
extends java.lang.Object

This class provides some static methodes that do model - struts data translations

Version:
Author:
Gerard van de Weerd

Constructor Summary
StrutsUtil()
           
 
Method Summary
static void addModelErrorsToActionErrors(ModelErrors modelErrors, org.apache.struts.action.ActionErrors actionErrors)
          Creates an (equivalent) action error for each model error in the given model errors object, and adds them at the specified property value (in the model errors) to the action errors object.
static org.apache.struts.action.ActionError createActionError(ModelError modelError)
          Creates an (equivalent) action error object for the given model error object.
static org.apache.struts.action.ActionErrors createActionErrorsFromModelErrors(ModelErrors modelErrors)
          Creates an (equivalent) action errors object for the given model errors object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrutsUtil

public StrutsUtil()
Method Detail

addModelErrorsToActionErrors

public static void addModelErrorsToActionErrors(ModelErrors modelErrors,
                                                org.apache.struts.action.ActionErrors actionErrors)
Creates an (equivalent) action error for each model error in the given model errors object, and adds them at the specified property value (in the model errors) to the action errors object.


createActionErrorsFromModelErrors

public static org.apache.struts.action.ActionErrors createActionErrorsFromModelErrors(ModelErrors modelErrors)
Creates an (equivalent) action errors object for the given model errors object.


createActionError

public static org.apache.struts.action.ActionError createActionError(ModelError modelError)
Creates an (equivalent) action error object for the given model error object.



Copyright © 2003-2004 SourceForge. All Rights Reserved.