�]�O�̦h�H�Ϊ�
�[�Wopen���F���i���s�ª������ۮe�ʰ��D...
�����D�j�aı�o�Ӥ��Ӿ�Struts
�P��~
�
�o���I�D�A�z�����D���ڷQ�_�Ӵ��b�Ҥ���Ū�L���@�g�峹
http://210.60.194.100/life2000/professer/lifeEthics/LE04.htm
����web framework�n���n�ΡA�n�ݾDzߪ̥����J�����[�I�C
�Hjava�ӻ�web application���L����¦���ǡC
�ӱz���M�ݨ��Fstructs�A�����ܰ�Model 1�]�p�覡�w�g���ມ���z�C
�ҥH�A�i�ӷQ�n�b���Q�h���W���Ҷi�i�C�ҥH�A���Τ@�Mweb framework
�O�@�Ӥ��������ܡC�o��web framework�j�h�O����Model 2���c�[(
���[����MVC design pattern)�A�ҥH���O�H�@��servlet�`�ީҦ���request
===================================================== �s�i��j�u ==
Model 1, Model 2
http://www.javaworld.com.tw/jute/post/view?bid=11&id=2567&sty=2
Model 2
http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html
===================================================== �s�i��j�u ==
�A��java server face�|��FacesServlet
�A��struts�|��ActionServlet
�A��spring mvc�|��DispatcherServlet
�A��tapestry�|��ApplicationServlet
�A��Wicket�|��WicketServlet
�A��foo�|��fooServlet ... blah blah blah
��! �o�{�FModel 2���S���F�a�C
"�C��framework�A�ߤ������@�ӥ��N��(servlet)"
request --> ���N��(servlet/Controller) --> *(�ӷ~��/Model) --> View
^ |
+------------<----------------<---------------------<-----------+
�ҥH�A�M�z���e�����ϥ�Model 2�ɡA�A�N�J���Ĥ@�����D: �����d�w���N���C
�q�`�Mwex.xml�����A�o�O�b�Dzߤj�����web framework�|���J�쪺�@�Ӫ��e�A
���F���L�o�Ӫ����F�̤��U�W�������]�w�n�A�g��hello world���~�C
��ij�z�ۤv�ʤ��g�g�X��servlet�Ӫ����A�|����sense
===================================================== �s�i��j�u ==
hello servlet �s���m�߽g
http://0rz.net/221Kf
===================================================== �s�i��j�u ==
�A�ӭn���諸�O��ControllerŪ���]�w�ɡA�q�`�]�Oxml�C�o�̴N�R���F�U�a
�]�p�����ǤF�C�bSpring Web Flow�A�|�ݨ��ܦh��state�AStruts�A�|���ܦh
form-bean�A�o�̴N�O�S�O�ݭn�h�F�Ѫ��a���C�A�ߤ��n���@�ө��Y�A�o�˰�
�ۤv�A�L��request�O�����e��controller���O? �z�]�\�g�FPOJO�ө������A
�]�\�L������ǭȤ��O��java bean�A�ǭȫᴣ�ѤF�������Ҫ������A���F��
���o�����Ҫ��\���A�ϥΪ̻ݭn�I�X�h�֪��V�O�O?
�A�Ӱw��view�Ҵ��Ѫ�taglib�A�O�_ı�o���ΡC�Ҧpspring mvc�w�������N
���ѤF�@��taglib�A���ϥΪ̶����Ȫ��ɭԥi�H�Q�Υ����ܾA�X���ץ����ܡC
�o�إ\�����M�ܦhframework�������ѡA���O�ΰ_�ӬO�_�����S�]�H�Ӥw�C
�������H�N�����wscriplet�A�]���Q��taglib�C���o�˪�web framework�ມ
���A���ݨD��? �䤤�@�جOtapestry�A���ҧ⥲�n��code���bhtml���ݩʤ��C
�Pweb framework�t�X�˪�����O�������P���Pı�C
�Ӥ]���H�Ҽ{�a���s�x�A�Ʊ��ϥΪ�framework�n�P�{�����u�㦳�}�n�����X
�Cspring���G�N�O�D���o��--���X�O�C
���M�A�٭n�Ҽ{���O�}�o�ɪ��IJv�C�A�N�Ӱݰݦۤv�o���N�M�ڱ`�Ϊ�ide
���X�G? �d���U�y�Aťť�O�H���f�O�]�n�ۧڿ˨������C
�A�i�H�ۤv�ոմX��framework�A�C�X���ۤv�h����
for example:
framework form-check ide taglib/view ���q���N�V
A
B
C
D
E
======================================================================
�����v�� 2 3 1 4
======================================================================
�`��
--
[1;32m�� Origin: [33mSayYA ���T�� [37m<bbs.sayya.org> [m
[1;31m�� From: [36m163.26.34.20[m