🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #13060

struts�м������Ͷ������� zt

#13060
From: ���|{�����ɱ�}
Date: Tue, 06 Jul 2004 14:17
65 lines
4235 bytes
��struts��(��������Ļ���MVC��WEBӦ����)�ļ��ֳ��ö������£�

1.ҵ�����(BO)
    1.1 ʵ��ҵ�����(Entity)
    1.2 ���ҵ�����(Process)
    1.3 �¼�ҵ�����(Event)
2.��ݴ��ݶ���/ֵ����(DTO/VO)
3.FormBean
4.��ݷ��ʶ���(DAO)
5.POJO(���߿��Է���Ϊ��Java����:))
6.�־û�����(PO)

��Щ���󹹳������WEBӦ�ó��������ṹ���ṹͼ������£�

        +-----------------------+ -----
        | HTML FORM             |
        +-----------------------+ View
        | FormBean              |
        +--------[DTO]----------+ ----- Control
        | BO                    |
        | +----+ [DTO] +----+   |
        | | BO |<----->| BO |   |
        | +----+       +----+   | Model
        +-------[POJO]----------+
        | DAO     A             |
        |         |ORM����    |
        |        [PO]           |
        +-----------------------+ -----
        | DB                    |
        +-----------------------+

1.BO����ҵ���߼������漰�����еĶ���ʹ����Щ�����������߼�������
  EJB�е�EB����һ��ʵ��ҵ�����
  EJB�е�SB����һ�ֹ��ҵ�����
  BO�Ŀ��ӷ�Χ�ڿ��Ʋ�ͳ־ò�֮�䡣

2.DTO��Ҫ�������ڲ�ͬ��֮�䴫����ݣ���ϸ������ݵĴ�������ͼ��
  ��������������IJ�����ͼ��

3.FormBean��Html Formӳ��ɵ�һ��������Ҫ��������Html Form����
  ɢ����ݷ�װ�������Զ������ʽ���ṩOO��ʽ�IJ�����

4.DAOʹ�ײ���ݷ����߼���ҵ���߼����뿪��Ҳ����˵��ΪDAO�Ĵ��ڣ�
  �Ÿ��뿪����ݵķ����߼���ҵ���߼���DAO�Ӿ������Դ�г�ȡ��ݣ�
  ���POJO����BOʹ�ã�ͬʱ��BO���ݹ�����POJO���־û������Դ�С�

5.POJO�Ǻ�PO����ֵ�һ�ֶ���POJOָ���Ǵ�Java�Ķ�������ҵ
  ��㣬��JVM���ƹ���������

6.PO�Ƕ�Ӧ�����Դ����ڵĶ��������϶�Ӧ��POJO�����¶�Ӧ������
  ���Դ��һ��ģ�ORM�ṩ����PO������hibernate��ͨ����ʹ����Ա
  �о�����PO�Ĵ��ڣ����Դ��Ȼ��ӳ�����Java�еĶ���

--

�� �޸�:��Javor �� Jun 30 10:14:17 �޸ı��ġ�[FROM: 202.118.224.*]                                                      
�� ��Դ:��BBS ˮľ�廪վ smth.org��[FROM: 202.118.224.*]                                                                

--
http://bbs.tju.edu.cn/TJUBBS/attach/bbscon/user688.jpg?B=Pictures&F=M.1088776759.A&attachpos=168&attachname=/user688.jpg
����˵������˵�߾��ߣ�ֻ���������������....


�� ��Դ:�������ʵBBS bbs.tju.edu.cn��[FROM: 202.113.13.188]
Technical Details
Message-ID: <4D85df$ACN@bbs.tju.edu.cn>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!cyclone.bc.net!sjc1.usenetserver.com!news.usenetserver.com!news.bylinux.net!maily.cic.tsinghua.edu.cn!news2.happynet.org!TJUBBS

Show Full Headers
Complete Article Headers
X-Google-Thread: f6cb0,d087abdafd227408,start
X-Google-Attributes: gidf6cb0,public
X-Google-Language: Chinese,GB
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!cyclone.bc.net!sjc1.usenetserver.com!news.usenetserver.com!news.bylinux.net!maily.cic.tsinghua.edu.cn!news2.happynet.org!TJUBBS
From: bigbug.bbs@bbs.tju.edu.cn.no.spam (���|{�����ɱ�})
Newsgroups: cn.bbs.comp.lang.java
Subject: struts�м������Ͷ�������  zt
Date: 06 Jul 2004 14:17:29 GMT
Organization: �����ʵBBSվ
Message-ID: <4D85df$ACN@bbs.tju.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1089123449.A
Lines: 65