Discussion:
到底該不該學Struts?
(时间太久无法回复)
keep healthy body
2006-08-22 12:30:27 UTC
Permalink
�]�O�̦h�H�Ϊ�
�[�Wopen���F���i���s�ª������ۮe�ʰ��D...
�����D�j�aı�o�Ӥ��Ӿ�Struts
�P��~

�p�G�A�O�u�@�n�Ψ��A���N�Ĩľǧa

�p�G�A�u�O�����A���ǤS����

framework�o�F����o�V�h�A�A�V���D�n�έ��Ӧn
--
 ���� �x�� �ڻ��޻�!!���~�w�w�w�w�w�w�w�w�w��   ������!!�� �@ ������ 
�� ���o ������ ���x IP:140.123.174.1�c�d�f�g�h  �� ���� �� �o" ��
 "  " �n�� �b�d DN:bala.twbbs.org�x    ������ " 
��  ���m�c�d�e�f�g�h�i ���w�w�w�w�w�w�w�w�w���m�������ޡE�ݼ֪��G�m�n �n�I 
 �I����   FR: 61-62-111-213-adsl-tpe.dynamic.so-net.net.tw   ���� ��
foolish
2006-08-22 14:23:26 UTC
Permalink
�]�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
======================================================================
�`��
--
�� Origin: SayYA ���T�� <bbs.sayya.org> 
�� From: 163.26.34.20
foolish
2006-08-22 14:45:25 UTC
Permalink
感謝~
注意別把destroy寫成destory (逃)
--
夫兵者不祥之器物或惡之故有道者不處君子居則貴左用兵則貴右兵者不祥之器非君子
之器不得已而用之恬淡為上勝而不美而美之者是樂殺人夫樂殺人者則不可得志於天下
矣吉事尚左凶事尚右偏將軍居左上將軍居右言以喪禮處之殺人之眾以哀悲泣之戰勝以
喪禮處之道常無名樸雖小天下莫能臣侯王若能守之萬物將自賓天地相合以降甘露民莫
之令而自均始制有名名亦既有夫亦將知止知止可以不殆譬道之在天下163.26.34.20海
slayer 在 06/08/22 22:45:25 從 163.26.34.20 修改這篇文章
Loading...