net.aejase.plugin.wizard
Class WizardUtils

java.lang.Object
  |
  +--net.aejase.plugin.wizard.WizardUtils

public class WizardUtils
extends java.lang.Object

Wizard Toolkit

Since:
0.7
Version:
0.7
Author:
Thomas Cornet

Constructor Summary
WizardUtils()
           
 
Method Summary
static org.apache.struts.config.ActionConfig getActionConfig(javax.servlet.http.HttpServletRequest request)
          Returns the ActionConfig of the action called in the request
static java.util.Map getActionFormFields(javax.servlet.http.HttpServletRequest request, java.lang.String actionPath)
          Finds all the fields of an action's form
static java.lang.String processPath(javax.servlet.http.HttpServletRequest request)
          Identify and return the path component (from the request URI) that we will use to select an ActionMapping to dispatch with.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WizardUtils

public WizardUtils()
Method Detail

processPath

public static java.lang.String processPath(javax.servlet.http.HttpServletRequest request)
Identify and return the path component (from the request URI) that we will use to select an ActionMapping to dispatch with. If no such path can be identified, create an error response and return null.

Parameters:
request - The servlet request we are processing
Throws:
IOException - if an input/output error occurs
See Also:
RequestProcessor

getActionConfig

public static org.apache.struts.config.ActionConfig getActionConfig(javax.servlet.http.HttpServletRequest request)
Returns the ActionConfig of the action called in the request

Parameters:
request - the current request
Returns:

getActionFormFields

public static java.util.Map getActionFormFields(javax.servlet.http.HttpServletRequest request,
                                                java.lang.String actionPath)
Finds all the fields of an action's form

Parameters:
request - the current request
actionPath - the action's path
Returns:
all the fields of the form