摘要
给出了基于J2EE的Web应用的一个典型的多层结构,阐述了在一个典型的J2EE Web应用中MVC设计模式所包括的3个组成部分以及会话门面设计模式及其优点,指出即使采用会话门面设计模式,也必须避免把实体Bean直接暴露给Web层,而应该为Web层提供可串行化的数值对象。对基于J2EE的Web应用的安全策略进行了论述,提出了大型的基于J2EE的Web应用的一种设计模式,同时给出了该设计模式下的一个实现举例。
At first, a typical n-tier architecture of the web application based on J2EE was given, and then the three constituents of the MVC pattern of a typical web application based on J2EE and the session facade design pattern as well as its advantages were explained. Meanwhile, it must be avoided that the entitybean is exposed to the web tier even if the session facade design pattern is adopted. The good method to avoid it is that a serializable value object is transmitted to the web tier. The security policy of this web application was also discussed. At last, a design pattern of a large web application based on J2EE and an example of this pattern was given out.
出处
《计算机工程与设计》
CSCD
2004年第6期992-995,共4页
Computer Engineering and Design