Base-Jsp-15-application design principles
Abstract: Base-Jsp-15-application design principles
V application design principles
Ø database access because it is abstract and thus avoids a number of applications in a specific part of the data model.
ª bean can be used to accomplish this awareness.
ª abstract database access: applications that do not access the database directly, but indirectly through the database Management Database Access, If a structure of the database changes, just in one place can be amended.
Ø database access bean must be activated when the application can be used for all other parts.
ª application life cycle events sniffers can be used for the task.
ª sniffers can be used to initialize the sharing of resources, sharing of resources such as application scope general use,
When a user requests can be guaranteed.
ª such a sharing of resources generally need to be initialized before use, the standard method in a
All of these locations at the code and resources, as well as assumptions can be initialized and the circumstances, the application
Other procedures can be part of normal work. Application Lifecycle sniffers such resources is initialized
An excellent tool.
Javax.servlet.ServletContextListener interface, when applications closed at the start and containers will be transferred
The interface with the method.
ª sniffers initialize the object deposited in the general application of the different jurisdictions, for the use of other components.
Ø only authenticated users only allows access to applications
ª filters can complete access control requirements.
ª filters achieve access control, allowing all of the JSP pages to delete access control code.
Ø Using Java code to request the best treatment effect
ª servlet as control of its compliance with the requirements
Ø must be able to easily change the appearance of procedures
ª JSP is, can be used to view
↑ Back
Tags: the design pattern






