|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.action.Action
org.jafer.registry.web.struts.action.JaferRegistryAction
public abstract class JaferRegistryAction
Super class for all actions providing common functions
Field Summary | |
---|---|
protected org.apache.struts.validator.DynaValidatorActionForm |
dynaForm
Stores a reference to the DynaValidatorActionForm |
protected org.apache.struts.action.ActionMapping |
mapping
Stores a reference to the mapping |
protected javax.servlet.http.HttpServletRequest |
request
Stores a reference to the request |
protected javax.servlet.http.HttpServletResponse |
response
Stores a reference to the response |
protected javax.servlet.http.HttpSession |
session
Stores a reference to the session |
protected static java.lang.String |
SUCCESS
Stores a reference to the SUCCESS MAPPING |
Fields inherited from class org.apache.struts.action.Action |
---|
defaultLocale, servlet |
Constructor Summary | |
---|---|
JaferRegistryAction()
|
Method Summary | |
---|---|
protected void |
addErrorMessage(java.lang.String messageKey)
Adds the message looked up from the resource bundle |
protected void |
addInfoMessage(java.lang.String messageKey)
Adds the message looked up from the resource bundle |
protected org.apache.struts.action.ActionForward |
getActionForward()
Get the action forward for the submit action |
protected org.apache.struts.action.ActionForward |
getActionForward(java.lang.String key)
Get the action forward for the key |
protected org.apache.struts.action.ActionForward |
getErrorPage()
Returns an action forward to the standard error page |
protected RegistryManager |
getRegistryManager()
Get the registry manager creating it if it does not exist |
protected java.lang.String |
getReturnPage()
Gets the current return page |
protected ServiceLocator |
getServiceLocator()
Get the service locator creating it if it does not exist |
protected ServiceManager |
getServiceManager()
Get the service manager |
void |
initAction(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Saves all the paramaters for use |
protected void |
setReturnPage()
Stores the current return page into the session |
Methods inherited from class org.apache.struts.action.Action |
---|
addErrors, addMessages, execute, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.servlet.http.HttpSession session
protected org.apache.struts.action.ActionMapping mapping
protected javax.servlet.http.HttpServletRequest request
protected javax.servlet.http.HttpServletResponse response
protected org.apache.struts.validator.DynaValidatorActionForm dynaForm
protected static final java.lang.String SUCCESS
Constructor Detail |
---|
public JaferRegistryAction()
Method Detail |
---|
public void initAction(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws RegistryException, java.io.IOException, javax.servlet.ServletException
mapping
- The struts action mappingform
- The action form sent in the requestrequest
- The request objectresponse
- The response object
java.io.IOException
javax.servlet.ServletException
RegistryException
protected void setReturnPage()
protected java.lang.String getReturnPage()
protected RegistryManager getRegistryManager() throws RegistryException
RegistryException
protected ServiceLocator getServiceLocator() throws RegistryException
RegistryException
protected ServiceManager getServiceManager() throws RegistryException
RegistryException
protected org.apache.struts.action.ActionForward getActionForward()
protected org.apache.struts.action.ActionForward getActionForward(java.lang.String key)
key
- The key to lookup in the action mapping
protected org.apache.struts.action.ActionForward getErrorPage()
protected void addInfoMessage(java.lang.String messageKey)
messageKey
- The key to lookupprotected void addErrorMessage(java.lang.String messageKey)
messageKey
- The key to lookup
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |