net.mlw.vlh.web
Class ValueListRequestUtil

java.lang.Object
  extended bynet.mlw.vlh.web.ValueListRequestUtil

public final class ValueListRequestUtil
extends Object

This is a utility to assist usig the ValueList in a web enviroment. net.mlw.vlh.web.ValueListRequestUtil

Version:
$Revision: 1.16 $ $Date: 2006/03/28 17:06:49 $
Author:
Matthew L. Wilson, Andrej Zachar

Method Summary
static ValueListInfo buildValueListInfo(javax.servlet.http.HttpServletRequest request)
          Build the ValueListInfo from the request and parameters.
static ValueListInfo buildValueListInfo(javax.servlet.http.HttpServletRequest request, String id)
          Build the ValueListInfo from the request for certain Table id.
static String getActionTempParamName(String userParamName)
          Return the name of parameter with ActionTag.ACTION_TEMP_PARAM_PREFIX Example: param "id" return "ACTid"
static Map getAllForwardParameters(javax.servlet.jsp.PageContext pageContext, String userForwardParameters, String id)
          Setter for the parameters, that are forwarded in every url link in table.
static Map getRequestParameterMap(javax.servlet.http.HttpServletRequest request)
           
static Map getRequestParameterMap(javax.servlet.http.HttpServletRequest request, String id)
           
static Map getRequestParameterMap(Map requestParameterMap, String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRequestParameterMap

public static Map getRequestParameterMap(javax.servlet.http.HttpServletRequest request)

getRequestParameterMap

public static Map getRequestParameterMap(Map requestParameterMap,
                                         String id)

getRequestParameterMap

public static Map getRequestParameterMap(javax.servlet.http.HttpServletRequest request,
                                         String id)
Parameters:
request -
id -
Returns:
A Map of string or String arrays.

buildValueListInfo

public static ValueListInfo buildValueListInfo(javax.servlet.http.HttpServletRequest request)
Build the ValueListInfo from the request and parameters.

Parameters:
request - The HttpServletRequest
Returns:
a new ValueListInfo.

buildValueListInfo

public static ValueListInfo buildValueListInfo(javax.servlet.http.HttpServletRequest request,
                                               String id)
Build the ValueListInfo from the request for certain Table id.

Parameters:
request - The HttpServletRequest
id - The tableId String.
Returns:
a new ValueListInfo.

getAllForwardParameters

public static Map getAllForwardParameters(javax.servlet.jsp.PageContext pageContext,
                                          String userForwardParameters,
                                          String id)
Setter for the parameters, that are forwarded in every url link in table.

Note: ValueListInfo.DO_FOCUS param you cannot forward. It is forbidden for all posibilities.

Parameters:
userForwardParameters - The userForwardParameters properties.
id - TableId of the currrent value list table.
See Also:
ActionTag.ACTION_TEMP_PARAM_PREFIX, ValueListInfo.DO_FOCUS

getActionTempParamName

public static String getActionTempParamName(String userParamName)
Return the name of parameter with ActionTag.ACTION_TEMP_PARAM_PREFIX Example: param "id" return "ACTid"

Parameters:
userParamName -
Returns:
ActionTag.ACTION_TEMP_PARAM_PREFIX + userParamName


Copyright © 2003-2006 mlavilson. All Rights Reserved.