|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.GenericServlet | +--javax.servlet.http.HttpServlet | +--org.apache.struts.action.ActionServlet | +--objectivehtml.struts.ObjectiveHtmlServlet
This class is the "Controller" for the OHtml-Struts framework.
Field Summary | |
protected ActionMap |
m_objActionMap
The map of ohtml-action directives |
protected FormConfigMap |
m_objFormConfigMap
The map of ohtml-form directives |
protected java.lang.String |
m_sOHtmlConfigFile
The file with the ohtml directives |
protected java.lang.String |
m_sResult
The request name where the result object is held |
Fields inherited from class org.apache.struts.action.ActionServlet |
actions, application, bufferSize, config, content, dataSources, debug, defaultLocale, factoryClass, formBeanClass, formBeans, forwardClass, forwards, internal, internalName, locale, mappingClass, mappings, maxFileSize, multipartClass, nocache, registrations, servletMapping, servletName, tempDir, validate, validating |
Constructor Summary | |
ObjectiveHtmlServlet()
|
Method Summary | |
void |
configureObjectiveHtml()
Parses the configuration file(s) for the OHtml-Struts framework and sets all the directives in the appropriate member variables. |
void |
connectObjects(HtmlForm objForm,
Connections objConnections,
javax.servlet.http.HttpServletRequest objRequest)
This connects the slots and signals specified from the directives. |
ActionMap |
getActionMap()
Gets the map of ohtml-action directives. |
FormConfigMap |
getFormConfigMap()
Gets the map of ohtml-form directives. |
java.lang.String |
getResult()
Gets the name of the request object where the result data is to be stored. |
void |
init()
Initialize this servlet with the directives from the ohtml configuration files. |
void |
initObjectiveHtml()
Does the remaining initialization operations needed for OHtml. |
protected void |
initObjectiveHtmlParams()
Initializes the ohtml startup parameters. |
HtmlForm |
newFormInstance(java.lang.String sName)
Creates a new HtmlForm object based on the ohtml-form directives specified in the configuration file. |
void |
processObjectiveHtmlAction(Action objAction,
javax.servlet.http.HttpServletRequest objRequest)
This method processed an Objective Html Action. |
java.lang.String |
processPath(javax.servlet.http.HttpServletRequest objRequest)
Overrides the parent version of method to make it public. |
void |
setActionMap(ActionMap objActionMap)
Sets the map of ohtml-action directives. |
void |
setFormConfigMap(FormConfigMap objFormConfigMap)
Sets the map of ohtml-form directives. |
void |
setResult(java.lang.String sResult)
Sets the name of the request object where the result data is to be stored. |
Methods inherited from class org.apache.struts.action.ActionServlet |
addDataSource, addFormBean, addForward, addMapping, addServletMapping, destroy, destroyActions, destroyApplication, destroyDataSources, destroyInternal, doGet, doPost, findDataSource, findFormBean, findForward, findMapping, getBufferSize, getDebug, getFormBeanClass, getForwardClass, getMappingClass, getMaxFileSize, getMultipartClass, getResources, getTempDir, initActions, initApplication, initDataSources, initDebug, initDigester, initDigesterOld, initInternal, initMapping, initOther, initServlet, initUpload, log, process, processActionCreate, processActionForm, processActionForward, processActionPerform, processContent, processForward, processInclude, processLocale, processMapping, processNoCache, processPopulate, processPreprocess, processValidate, reload, removeFormBean, removeForward, removeMapping, setBufferSize, setFormBeanClass, setForwardClass, setMappingClass, setMaxFileSize, setMultipartClass, setTempDir |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String m_sOHtmlConfigFile
protected java.lang.String m_sResult
protected FormConfigMap m_objFormConfigMap
protected ActionMap m_objActionMap
Constructor Detail |
public ObjectiveHtmlServlet()
Method Detail |
public void init() throws javax.servlet.ServletException
init
in class org.apache.struts.action.ActionServlet
javax.servlet.ServletException
- if we cannot configure ourselves correctlyprotected void initObjectiveHtmlParams()
public void setResult(java.lang.String sResult)
sResult
- the name of the request objectpublic java.lang.String getResult()
public void setFormConfigMap(FormConfigMap objFormConfigMap)
sFormConfigMap
- the map of ohtml-form directivespublic FormConfigMap getFormConfigMap()
public void setActionMap(ActionMap objActionMap)
sActionMap
- the map of ohtml-action directivespublic ActionMap getActionMap()
public void configureObjectiveHtml() throws javax.servlet.ServletException
javax.servlet.ServletException
- if the configuration files cannot be processedpublic void initObjectiveHtml() throws javax.servlet.ServletException
javax.servlet.ServletException
- if the initialization failspublic HtmlForm newFormInstance(java.lang.String sName) throws javax.servlet.ServletException
sName
- the name of the form to instantiatejavax.servlet.ServletException
- if something goes wrongpublic void processObjectiveHtmlAction(Action objAction, javax.servlet.http.HttpServletRequest objRequest) throws javax.servlet.ServletException
objAction
- the action object to processobjRequest
- the current request objectjavax.servlet.ServletException
- if something goes wrongpublic void connectObjects(HtmlForm objForm, Connections objConnections, javax.servlet.http.HttpServletRequest objRequest) throws javax.servlet.ServletException
objForm
- the form that is currently is contextobjConnections
- the list of connection directivesobjRequest
- the current request objectjavax.servlet.ServletException
- if something goes wrongpublic java.lang.String processPath(javax.servlet.http.HttpServletRequest objRequest)
processPath
in class org.apache.struts.action.ActionServlet
objRequest
- the current request object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |