ParameterParser
����������HTTP������GET��POST�IJ����Ľӿڡ�
@author Michael Zhou
param1 = value; param2 = "anything goes; really"; param3
param1 = value; param2 = "anything goes; really"; param3
NOTE: The name= portion of a name=value pair may be converted to lowercase or uppercase when the object is initialized and when new data is added. This behaviour is determined by the url.case.folding property in TurbineResources.properties. Adding a name/value pair may overwrite existing name=value pairs if the names match:
ParameterParser pp = data.getParameters(); pp.add("ERROR",1); pp.add("eRrOr",2); int result = pp.getInt("ERROR");In the above example, result is 2. @author Ilkka Priha @author Jon S. Stevens @author Sean Legassick @author Jürgen Hoffmann @author Thomas Vandahl @version $Id: ParameterParser.java 812786 2009-09-09 07:01:49Z tv $
param1 = value; param2 = "anything goes; really"; param3
NOTE: The name= portion of a name=value pair may be converted to lowercase or uppercase when the object is initialized and when new data is added. This behaviour is determined by the url.case.folding property in TurbineResources.properties. Adding a name/value pair may overwrite existing name=value pairs if the names match:
ParameterParser pp = data.getParameters(); pp.add("ERROR",1); pp.add("eRrOr",2); int result = pp.getInt("ERROR");In the above example, result is 2. @author Ilkka Priha @author Jon S. Stevens @author Sean Legassick @author Henning P. Schmiedehausen @version $Id: ParameterParser.java 264148 2005-08-29 14:21:04Z henning $ @deprecated Use org.apache.turbine.util.parser.ParameterParser instead.
NOTE: The name= portion of a name=value pair may be converted to lowercase or uppercase when the object is initialized and when new data is added. This behaviour is determined by the url.case.folding property in TurbineResources.properties. Adding a name/value pair may overwrite existing name=value pairs if the names match:
ParameterParser pp = data.getParameters(); pp.add("ERROR",1); pp.add("eRrOr",2); int result = pp.getInt("ERROR");In the above example, result is 2. @author Ilkka Priha @author Jon S. Stevens @author Sean Legassick @author Henning P. Schmiedehausen @version $Id: ParameterParser.java 279820 2005-09-09 17:05:54Z henning $
Utility class for easy parsing of {@link ServletRequest} parameters.
This class implements the ViewTool interface to allow it to be used as a request scoped tool.
It should be noted that this class is not thread-safe. As it is wholly dependent upon the current ServletRequest, therefore each ServletRequest should have its own instance. This tool should not be used in the session or application scopes of your webapp.
@author Nathan Bubna @version $Revision: 1.5 $ $Date: 2003/05/28 00:17:16 $ param1 = value; param2 = "anything goes; really"; param3
|
|
|
|
|
|
|
|
|
|
|
|