�� ����� ���� �� ����

 

�� ������ ����� ������Ʈ�� ���� Web�����  create ï¿½Ï°ï¿½  remove �ϱ� ���� �ʿ���  �ܰ��� ������ ����մϴ�.  Web ï¿½ï¿½ �����ϱ� ���Ͽ�, �� ���� ���� �ܰ谡 �ֽ��ϴ� - Stage 1 - Web Module Wizard ï¿½ï¿½  Stage 2 - Web Module Settings in the Paths Dialog


����� �Ϲ� ������ ����,  Managing Files  ������ �����Ͻʽÿ�.


Add module ï¿½ï¿½ï¿½ï¿½ï¿½ç¿¡ ���� �� ���� ���λ��׿� ����, Java   ����� �ۼ��� ����ϰ� �ִ�  Creating Modules ������ �����Ͻʽÿ�.


 

�ܰ� 1- ï¿½ï¿½ ��� ������

 

 1.   Create/Import  ������ (������ 1). 

�� �ܰ迡�� ����� �����ϰ� �;��ϴ� ��� Ÿ���� �����մϴ�.


�ܰ��  Java module creation ���ǰ� �����մϴ�.


Create New:  Web Module ï¿½×¸ï¿½ï¿½ï¿½ �����մϴ�



 2.   Module name & Content Root  ������ (������ 2). 


Module Name  


���ϴ� �� ��� �̸����� Ÿ���� �Ͻʽÿ�.


Module Content Root  


��� ����(��� ��Ʈ, web.xml)�� ��ġ�ϴ� ��θ� �����մϴ�.  ï¿½ï¿½Î´ï¿½ �������� �Ǵ� ellipsis  ��ư�� ������ �ҷ�����  Select Path  ���̾�α׸� ����Ͽ� �Էµ� �� �ֽ��ϴ�.


Module File  will be saved in: 


��� ��� .iml ï¿½ï¿½ï¿½Ï¿ï¿½ ���� ��ġ ������ �����ݴϴ�.  ï¿½ï¿½Î´ï¿½ �������� �Ǵ� Change Directory...  ï¿½ï¿½Æ°ï¿½ï¿½ ������ �ҷ�����  Select Path  ���̾�α׸� ����Ͽ� �Էµ� �� �ֽ��ϴ�.


����� Next ï¿½ï¿½ ���� ��, ���� �������� �Էµ� ����Ʈ ��Ʈ ���͸��� ��ſ� ���� �����ϱ⸦ �����ϴ� ���� ���ٸ� IDEA�� ��ſ��� Directory Does Not Exist ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½Æ®ï¿½ï¿½ ��� �� �� �Դϴ�.



 3.   Application Server Integration  ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ (������ 3). 

�� �ܰ迡�� ����� ���ø����̼� ���� ���� �Ű� ������ ��Ӵٿ� �޴��� ����Ͽ� ����� ��⿡ ���� �� �ֽ��ϴ�.



���� ����� Generic Server Integration�� �����ϸ� ������ Web ï¿½ï¿½ï¿½ï¿½ï¿½ � Ư���� ���ø����̼� �������� ���� ���� ���Դϴ�.  WebLogic Server  ï¿½Ç´ï¿½ Tomcat   ������ �����ϸ鼭, ������ ����� �����ϴ� ������ ���õ� ���̰�, ���õ� ���ø����̼� ������ ������ �� �ֽ��ϴ�.  ï¿½×¸ï¿½ï¿½ï¿½ WebLogic Server ï¿½ï¿½ ��쿡 WebLogic  Ư���� ���� ������( weblogic.xml )�� ���� ��⿡ ���� ������ ���Դϴ�.

���ø����̼� ���� ������ ����/�����ϱ� ����, Configure... ï¿½ï¿½Æ°ï¿½ï¿½ �����ʽÿ�.   Application Servers  ���̾�αװ� ���� ���Դϴ�.

 4.   Web module deployment descriptor  (������ 4). 

���� ����� ���� WebLogic ������ ��� �����ϰ� �ϰ� �Ǹ� ����� �� ��� �Ӹ� �ƴ϶� �� ������ ���Ͽ� �׸��� WebLogic Ư���� ���� ����� ���� web.xml ï¿½ï¿½ï¿½Ï¿ï¿½ ��θ� �����Ͻʽÿ�.



��⿡ ���� ������ ���� ������� ǥ�μ� ǥ�õ˴ϴ�.


Type  


������ ���� �������� Ÿ���� �����ݴϴ�.


Path  


����� �� ��� ���� ����� ��θ� �����ݴϴ�.


Version  


������ ���� ������ ������ ǥ���մϴ�.


��� ���� ����� �����ϱ� ����, ����� ǥ�� ���� ��ư�� ����� �� �ֽ��ϴ�.


Add...  


���� ����� ��Ͽ� �߰��ϱ� ���� �����ʽÿ�.  Resource Location ï¿½ï¿½ï¿½Ì¾ï¿½Î±×°ï¿½ ��Ÿ���ϴ�



Ÿ�����ϰų� �Ǵ�  Select Path ���̾�α׸� ��� ���� ellipsis ï¿½ï¿½Æ°ï¿½ï¿½ ������ ���� ����� ��θ� �Է��մϴ�.


���� ��ΰ� �� ���� ������ ����Ű�� �װ��� File Templates: J2EE ���̾�α׿��� ������ ���ʸ� �ϸ鼭 ������ ���Դϴ�.


 


Edit...  


��Ͽ��� ���� ���õ� ���� ����� �����ϱ� ���� �����ʽÿ�. Deployment Descriptor Location ï¿½ï¿½ï¿½Ì¾ï¿½Î±×°ï¿½ ��Ÿ���ϴ�.



�ؽ�Ʈ �ʵ忡�� �װ��� �ٲٰų� �Ǵ�  Select Path ���̾�α׸� ��� ���� ellipsis ï¿½ï¿½Æ°ï¿½ï¿½ ������ ���� ����� ��θ� �Է��մϴ�.


���� ��ΰ� �� ���� ������ ����Ű�� �װ��� File Templates: J2EE ���̾�α׿��� ������ ���ʸ� �ϸ鼭 ������ ���Դϴ�.


Web Module Deployment Descriptor�� WebLogic Web Module Deployment Descriptor ï¿½ï¿½ ���� ����� ���-�ٿ� Deployment descriptor version ï¿½ï¿½Ï¿ï¿½ï¿½ï¿½ ���� ������ ������ ������ �� �ֽ��ϴ�.


Delete  


��Ͽ��� ���� ���õ� ���� ����� �����ϱ� ���� �����ʽÿ�.
Web Module Deployment Descriptor�� WebLogic Web Module Deployment Descriptor�� ���� �Ұ���



 5.   Setup web resource directory  (������ 5). 

����� ���� ���͸� ���ο��� �ᱹ�� ��ġ�ǰ� �;��ϱ⸦ ���ϴ� JSP ����, �ΰ��� ���� ������ ��� ���� �� Ư���� �ڿ��� �����ϴ� �� �ڿ� ���͸��� ���� �����Ͻʽÿ�.


Setup web  resource directory  


�� ��⿡ ���� �� �ڿ� ���͸��� �����ϱ� ���� �� �ɼ� ��ư�� �����Ͻʽÿ�.


Web resource  directory path  


����� ����̺� ������ ����� �� �ڿ� ���͸��� ��θ� �Է��Ͻʽÿ�.  ï¿½ï¿½Î´ï¿½ �������� �Ǵ� ellipsis ï¿½ï¿½Æ°ï¿½ï¿½ ������ �ҷ����� Select Path  ���̾�α׸� ����Ͽ� �Էµ� �� �ֽ��ϴ�.


Relative path  in deployment directory  


���� ���͸� ��Ʈ�� ������ ����� �� �ڿ� ���͸��� ��θ� �Է��Ͻʽÿ�.


Do not setup  web resource directory  


���� ����� �� ��⿡ ���� �� �ڿ� ���͸��� �����ϰ� �;����� �ʴ´ٸ� �� �ɼ� ��ư�� �����Ͻʽÿ�.



 6.   Setup web module exploded directory  (������ 6). 

�� ���ø����̼� ������ ���� ���Ǵ� �� ��� exploded ���͸��� ���� �����Ͻʽÿ�.


Setup web  module exploded directory  


�� ��⿡ ���� �� ��� exploded ���͸��� �����ϱ� ���Ͽ�

�� �ɼ� ��ư�� �����Ͻʽÿ�.


Web resource  directory path  


����� �� ��� exploded ���͸��� ��θ� �Է��Ͻʽÿ�.  ï¿½ï¿½Î´ï¿½ �������� �Ǵ� ellipsis ï¿½ï¿½Æ°ï¿½ï¿½ ������ �ҷ����� Select Path ���̾�α׸� ����Ͽ� �Էµ� �� �ֽ��ϴ�.


Do not setup  web module exploded directory  


���� ����� �� ��⿡ ���� �� ��� exploded ���͸��� �����ϰ� �;����� �ʴ´ٸ� �� �ɼ� ��ư�� �����Ͻʽÿ�.



 7.   Setting a source directory  ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ (������ 7)
 


Create source  directory  


���� ����� �� ��⿡ ���� ��Ʈ �ҽ� ���͸��� �����ϰ� �;����� ������ �� �ɼ� ��ư�� �����Ͻʽÿ�.  ï¿½Ô·ï¿½ï¿½ï¿½ ��δ� ������ �ܰ迡�� ������ ����Ʈ ��Ʈ ���͸��� �����Ǿ� �ֽ��ϴ�.  ï¿½ï¿½Î´ï¿½ �������� �Ǵ� ellipsis ï¿½ï¿½Æ°ï¿½ï¿½ ������ �ҷ�����  Select Path ���̾�α׸� ����Ͽ� �Էµ� �� �ֽ��ϴ�.


Do not create  source directory  


���� ����� �� ��⿡ ���� �ҽ� ���͸��� �����ϰ� �;����� ������ �� �ɼ� ��ư�� �����Ͻʽÿ�.


The following  directory will be marked as a source directory: 


��� ����� ����̺� ������ �ҽ� ���͸��� ��Ҹ� ǥ���մϴ�.  Create source directory ï¿½É¼ï¿½ ��ư�� ���õ� ���� ��� �����մϴ�.


�׷���, ���� ������ �ܰ迡�� ����� Module content root�μ� ���͸� ������ �����ϴ� ���͸��� �����ؿԴٸ�IDEA�� �ڹ� �ҽ��� �ű⿡�� ã�� ���� �˻��� ������ ���Դϴ�.



����� Stop Searching�� ������ �Ϳ� ���� � �ð��̶� �˻��ϴ� ���� ���� �� �ֽ��ϴ�.
���� ����� Next�� ������ ��ſ��� ������ ���̾�αװ� ������Ʈ�� ���Դϴ�:



�˻��� �Ϸ�ǰ� �� �Ŀ�(�Ϸ�ǰų� �׷��� �ʰų� �� �߿� �ϳ�) ���� �����찡 ��Ÿ���ϴ�.



 
����� ���ο� ��⿡�� Sources�μ� ���ԵDZ⸦ ���ϴ� ���͸��� �����ϰ� Next�� �����ʽÿ�.

 8.   Setting a compiler output path  ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ (������ 8). 



�����ϴ� �ʵ忡�� ��⿡ ���� �����Ϸ� ��� ��θ� �����Ͻʽÿ�.  ï¿½ï¿½ï¿½ï¿½ï¿½ IDEA�� ���� ���ȵ� �̸��� ä���ϰų� �Ǵ� �ٸ� ���� �Է��� �� �ֽ��ϴ���δ� �������� �Ǵ� ellipsis ï¿½ï¿½Æ°ï¿½ï¿½ ������ �ҷ�����  Select Path  ï¿½ï¿½ï¿½Ì¾ï¿½Î±×¸ï¿½ ����Ͽ� �Էµ� �� �ֽ��ϴ�.
����� �����ϱ� ���� Finish�� �����ʽÿ�.

 

�ܰ� 2- ï¿½ï¿½ï¿½ ���̾�α��� �� ��� ����


Add Modules ï¿½ï¿½ï¿½ï¿½ï¿½ç°¡ ������ �� �Ŀ� ����� ���Ӱ� ������ ����� ������ �� �ʿ䰡 �������� �𸨴ϴ�.  Paths  ���̾�α��� �ڵ������� ������ ���Ӱ� ������ ����� ��Ͽ��� ���õ˴ϴ�.
���� ����� ��� ������ ���ٸ� Apply�� �����ų� ��� ������ �����ϱ� ���� OK�� �����ʽÿ�. �� �� ������ Web ï¿½ï¿½ï¿½ï¿½ï¿½ J2EE View�� ��Ÿ���ϴ�.

�� ��� ����


Web ï¿½ï¿½ï¿½ï¿½ï¿½ �����ϱ� ���Ͽ�:

*   Delete ï¿½ï¿½ �����ų� ������ ����� �ű⿡�� ���õ� �� J2EE View�� ����� ������ ��ư�� Ŭ���ϰ� �� �Ŀ� ��Ÿ���� ���� �޴����� Delete ï¿½×¸ï¿½ï¿½ï¿½ �����մϴ�.

*   ������ ����� File SettingsProject Settings: Paths ���̾�α��� Module List ï¿½ï¿½ï¿½ï¿½ ���õ� �� Remove ï¿½ï¿½Æ°ï¿½ï¿½ �����ʽÿ�.  



 
OK�� ������ ������Ʈ�κ��� ����� �����մϴ�.  ï¿½×·ï¿½ï¿½ï¿½, ��� ������ �ǵ帮�� ���� ���·� �����ֽ��ϴ�.