nl.gx.webmanager.handler.forms.handling
Class XslToSessionHandler
java.lang.Object
nl.gx.webmanager.handler.forms.handling.XslToSessionHandler
- All Implemented Interfaces:
- FormComponent, Handler
public class XslToSessionHandler
- extends java.lang.Object
- implements Handler
Retrieves XML from the session or formflow, executes a transformation, and
stores the result in the session or global values.
| Variable |
Type |
Mode |
Default |
Description |
| sourcesessionkeys |
Multiple Parameter |
Optional |
The flow XML |
If the 'sourcekeyprefix' is set this parameter will be ignored. If 'sourcekeyprefix'
is null, this parameter holds the session keys for retrieving the XML. If this parameter
is also not set, the flow XML will be used for the transformation. |
| sourcekeyprefix |
Parameter |
Optional |
- |
The prefix for the keys of which the values should be retrieved. If this value
is set to 'GX_', then the XML for the transformation will equal the XML used in
the gettext methods. |
| xsl |
Parameter |
Optional |
- |
The XSL that will transform the input XML. |
| sessionkey |
Parameter |
Optional |
- |
The key in the session for storing the result. |
| key |
Parameter |
Optional |
- |
The key in the global values for storing the result. |
Example usage:
- Copy values from flight booking to hotel booking web service URL.
- Store the username of a webuser in the session when he logs in.
|
Method Summary |
void |
doHandle(FormDefinition form,
State formState,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Processes the form. |
void |
init(FormComponentConfig config)
Passes the initialization parameters to the component. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XslToSessionHandler
public XslToSessionHandler()
init
public void init(FormComponentConfig config)
throws InitializationException
- Description copied from interface:
FormComponent
- Passes the initialization parameters to the component.
- Specified by:
init in interface FormComponent
- Parameters:
config - The FormComponentConfig object that contains
configutation information for this component.
- Throws:
InitializationException - If initialization failed
doHandle
public void doHandle(FormDefinition form,
State formState,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws HandleException
- Description copied from interface:
Handler
- Processes the form.
- Specified by:
doHandle in interface Handler
- Parameters:
form - The definition of the form for which the submitted values
should be handled.formState - The session values for the formreq - The http requestres - The http response
- Throws:
HandleException - If the form values could not be handled correctly
Copyright © 2007-2011 GX Software BV. All Rights Reserved.