org.formproc.servlet
Class ExtendedHttpForm
java.lang.Object
|
+--org.formproc.Form
|
+--org.formproc.servlet.ExtendedHttpForm
- public class ExtendedHttpForm
- extends Form
Extended version of the HttpForm class which pulls data from both the
request and the session. Request parameters will take precedence over
session objects.
- Author:
- Anthony Eden
Constructor Summary |
ExtendedHttpForm()
Construct a new ExtendedHttpForm. |
ExtendedHttpForm(java.lang.String name,
java.lang.Object target)
Construct a new ExtendedHttpForm with the given form name and
target object. |
Method Summary |
FormResult |
process(javax.servlet.http.HttpServletRequest request)
Process the given HttpServletRequest. |
FormResult |
process(javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
Process the given HttpServletRequest. |
Methods inherited from class org.formproc.Form |
configure, convert, getErrorMessage, getErrorMessage, getFormConfiguration, getMessage, getMessage, getName, getTarget, getWriteMethod, process, process, process, process, process, setName, setTarget, store, validate, validateGroups |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtendedHttpForm
public ExtendedHttpForm()
- Construct a new ExtendedHttpForm.
ExtendedHttpForm
public ExtendedHttpForm(java.lang.String name,
java.lang.Object target)
- Construct a new ExtendedHttpForm with the given form name and
target object.
- Parameters:
name
- The form nametarget
- The target object
process
public FormResult process(javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
- Process the given HttpServletRequest. The value of Locale.getDefault()
is used to process the form fields. Both request parameter data and
session data will be processed, with request parameter data taking
precedence.
- Parameters:
request
- An HttpServletRequest object
- Returns:
- The FormResult object
- Throws:
java.lang.Exception
- Any exception
process
public FormResult process(javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
throws java.lang.Exception
- Process the given HttpServletRequest. Both request parameter data and
session data will be processed, with request parameter data taking
precedence.
- Parameters:
request
- An HttpServletRequest objectlocale
- The Locale
- Returns:
- The FormResult object
- Throws:
java.lang.Exception
- Any exception
Copyright (c) 2001-2003 Anthony Eden. All Rights Reserved.