Package com.softslate.commerce.customer.core

Provides basic interfaces, classes and utilities used by all the other packages in the Struts layer.


Interface Summary
ActionUtils Interface for utility methods used by Struts Action classes.
FormUtils Interface for utility methods used by Struts Form classes.

Class Summary
ActionUtilsImpl ActionUtilsImpl is the default implementation of the ActionUtils interface for the application.
AppInsertTag Extension of the Tiles InsertTag, to allow for custom layouts.
AppLinkTag Extension of the Struts ELLinkTag, to allow for search-engine friendly URLs for product, category and other pages.
AppMessageResources Extension of the Struts PropertyMessageResources class which wraps a second PropertyMessageResources object holding custom application messages.
AppMessageResourcesFactory Extension of the Struts MessageResourcesFactory class which creates instances of AppMessageResources instead of the Struts PropertyMessageResources class.
AppUtils Provides miscellaneous static methods used by various classes in the Struts layer.
BaseAction Extension of the Struts Action class that every action class in the system subclasses in turn.
BaseDynaForm Extends the Struts DynaActionForm class to provide base functionality for form classes in the system.
BaseForm Extends the Struts ActionForm class to provide base functionality for form classes in the system.
BaseRequestProcessor Subclass of TilesRequestProcessor that negotiates each application request.
CheckRequestProcessor Subclass of BaseRequestProcessor that helps negotiate each application request.
ConfigPlugIn Initializes singleton objects in the application scope.
CustomerRequestProcessor Subclass of BaseRequestProcessor that negotiates each application request for the customer interface.
ELAppInsertTag Extension of the Tiles ElInsertTag, to allow for custom layouts.
Form2EmailAction The Struts action class responsible for sending emails with information captured from the contact form and other form-to-email forms.
Form2EmailForm Struts form class for submissions to the contact form and other form-to-email forms.
FormUtilsImpl FormUtilsImpl is the default implementation of the FormUtils interface for the application.
HibernateFilter A servlet filter that manages a single Hibernate Session for each request, per the ThreadLocal model.
LayoutAction The Tiles contoller action that is used by the default "baseLayout", "baseLeftLayout", and "baseCenterLayout" Tiles definitions.
SEOFilter Filter to translate incoming URLs from a search-engine friendly format to the format understood by the application.
SwitchLanguageAction Action class to handle a request from the user to switch the language that navigational elements, buttons, and labels are displayed with.
WelcomeAction Struts action class that corresponds to the welcome page.

Package com.softslate.commerce.customer.core Description

Provides basic interfaces, classes and utilities used by all the other packages in the Struts layer.

BaseForm and BaseDynaForm extend the Struts ActionForm and DynaActionForm respectively. They provide several properties common to all of the Web requests the application receives, to help the action classes communicate with the rest of the application.

The interfaces ActionUtils and FormUtils, and their corresponding implementations, provide useful utility methods that assist with processing actions and validatidating forms, respectively.

ConfigPlugIn is a Struts PlugIn that initializes singleton objects in the servlet's application scope, for use throughout the system.

LayoutAction is a Tiles controller that is run just before the response is returned to the user. Its two main functions are to set the HTML title for the page being displayed, and to update the paths of the Tiles attributes if a custom layout is being displayed.

SEOFilter is a Java Servlet Filter that translates search-engine friendly URLs into URL formats understood by the application. AppLinkTag does the reverse: it is an extention of the Struts link tag which generates search-engine friendly links.

AppInsertTag is an extension of the Tiles insert tag which provides additional functionality for custom layouts.

HibernateFilter is a Java Servlet Filter implementing the ThreadLocal model for Hibernate sessions. It handles making sure every Hibernate transaction is closed cleanly.

AppMessageResources and AppMessageResourcesFactory extend the Struts MessageResources facility to make it easier to create custom messages for the application, without the danger that the custom messages will be overridden by a future upgrade.

Finally, BaseRequestProcessor is the application's extension of the Struts TilesRequestProcessor. It does a variety of initializations and other processing at the beginning of every request. In addition it overrides Struts' default exception handling to assist with logging and debugging. Its child class, CustomerRequestProcessor, initializes variables used specifically in the customer interface.

Copyright © SoftSlate, LLC 2003–2005