net.sf.oness.common.webapp.controller.struts
Class ActionServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.apache.struts.action.ActionServlet
              extended bynet.sf.oness.common.webapp.controller.struts.ActionServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ActionServlet
extends org.apache.struts.action.ActionServlet

Customized ActionServlet to use CustomMessageResources

Version:
$Revision: 1.1 $
Author:
Carlos Sanchez
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.action.ActionServlet
config, configDigester, convertNull, dataSources, internal, internalName, log, processor, registrations, servletMapping, servletName
 
Constructor Summary
ActionServlet()
           
 
Method Summary
protected  void initModuleMessageResources(org.apache.struts.config.ModuleConfig config)
          This is the overridden method to load multiple resource bundle files.
 
Methods inherited from class org.apache.struts.action.ActionServlet
addServletMapping, destroy, destroyConfigDigester, destroyInternal, destroyModules, doGet, doPost, getInternal, getModuleConfig, getRequestProcessor, init, initConfigDigester, initInternal, initModuleConfig, initModuleConfigFactory, initModuleDataSources, initModulePlugIns, initModulePrefixes, initOther, initServlet, parseModuleConfigFile, process
 
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
 

Constructor Detail

ActionServlet

public ActionServlet()
Method Detail

initModuleMessageResources

protected void initModuleMessageResources(org.apache.struts.config.ModuleConfig config)
                                   throws javax.servlet.ServletException
This is the overridden method to load multiple resource bundle files. The resource bundle files are expected to be defined in the struts-config.xml file in a comma separated fashion. For example, this is a typical struts config file declaring multiple resource files This method makes use of CentaurMessageResource class and passed the list of resource files to handle.Finally, it puts the CentaurMessageResources object in the ServletContext against the key specified in the configuration. As is the case, if no "key" is specified in the configuration (in our example config), it constructs a default key.

Parameters:
config - The ModuleConfig object.
Throws:
javax.servlet.ServletException - is thrown in case of initialisation problem.


Copyright © 2003-2005 ONess Project. All Rights Reserved.