web.xml���̋L�q����m��i�T�[�u���b�g2.3�j�FJavaTips �`�A�v���P�[�V�����T�[�o�^�R���e�i���p��

» 2004�N06��22�� 10��00�� ���J
[�R�c�ˊ��C��IT]

�@�f�v���C�����g�E�f�B�X�N���v�^�iweb.xml�j�́AWeb�A�v���P�[�V�����P�ʂ̃R���e�i�ւ̔z�u�ݒ���L�q���邽�߂̐ݒ�t�@�C���ł��B

�@�Ⴆ�΁ATomcat�̏ꍇ�A�R���e�i���ʂ̐ݒ���s���ꍇ�ɂ́u/conf/web.xml�v���A�A�v���P�[�V�����X�̐ݒ���s���ꍇ�ɂ́u/webapps/�A�v���P�[�V������/WEB-INF/web.xml�v��ҏW���܂��B

���ӁFTomcat�S�̂̋��������E����u/conf/web.xml�v�̐ݒ�́A�����Ƃ��ȁX�̃A�v���P�[�V�����J���҂��ύX���ׂ��ł͂���܂���B

�@�t�@�C���������������Ƃ���Aweb.xml�̒��g��XML�`���̃e�L�X�g�t�@�C���ł��B�Ž����ɂ��x��ł���A�ݒ���e�������ē�����Ƃ͂���܂���B�������A�ݒ������Ă��܂��ƁA�A�v���P�[�V�����S�̂����삵�Ȃ��Ȃ�ꍇ�����邽�߁A�ҏW�ɂ͏\���Ȓ��ӂ��K�v�ł��B

�@���ɁA�T�[�u���b�g2.3��web.xml�ł́A�X�L�[�}��`�Ƃ���DTD���p�����Ă���A���[�g�i�ŏ�ʁj�v�f�ł���web-apps�v�f�z���ɔz�u����q�v�f�̏��Ԃ������Ɍ��߂��Ă��܂��B���̂��߁A���̏��Ԃ��ԈႦ�������ł��G���[�ƂȂ��Ă��܂��̂ŁA�ҏW�̍ۂ͏\���ɒ��ӂ��Ă��������B

�@�T�[�u���b�g2.3��web.xml�Ŏg�p�ł����Ȏq�v�f�ƁA���̓o�ꏇ�ɂ‚��āA�ȉ��ɂ܂Ƃ߂Ă����܂��B

<web-apps>
����<icon>?
��      ����<small-icon>?
��      ����<large-icon>?
����<display-name>?
����<description>?
����<distributable>?
����<context-param>*
��      ����<param-name>
��      ����<param-value>
��      ����<description>?
����<filter>*�m2.3�n
��      ����<icon>?
��      ��      ����<small-icon>?
��      ��      ����<large-icon>?
��      ����<filter-name>
��      ����<display-name>?
��      ����<description>?
��      ����<filter-class>
��      ����<init-param>*
��              ����<param-name>
��              ����<param-value>
��              ����<description>?
����<filter-mapping>*�m2.3�n
��      ����<filter-name>
��      ����(<url-pattern>|<servlet-name>)
����<listener>*�m2.3�n
��      ����<listener-class>
����<servlet>*
��      ����<icon>?
��      ��      ����<small-icon>?
��      ��      ����<large-icon>?
��      ����<servlet-name>
��      ����<display-name>?
��      ����<description>?
��      ����(<servlet-class>|<jsp-file>)
��      ����<init-param>*
��      ��      ����<param-name>
��      ��      ����<param-value>
��      ��      ����<description>?
��      ����<load-on-startup>?
��      ����<run-as>?�m2.3�n
��      ����<security-role-ref>*
����<servlet-mapping>*
��      ����<servlet-name>
��      ����<url-pattern>
����<session-config>?
��      ����<session-timeout>?
����<mime-mapping>*
��      ����<extension>
��      ����<mime-type>
����<welcome-file-list>?
��      ����<welcome-file>+
����<error-page>*
��      ����(<error-code>|<exception-type>)
��      ����<location>
����<taglib>*
��      ����<taglib-uri>
��      ����<taglib-location>
����<resource-env-ref>*�m2.3�n
��      ����<description>?
��      ����<resource-env-ref-name>
��      ����<resource-env-ref-type>
����<resource-ref>*
��      ����<description>?
��      ����<res-ref-name>
��      ����<res-type>
��      ����<res-auth>
��      ����<res-sharing-scope>?�m2.3�n
����<security-constraint>*
��      ����<display-name>?�m2.3�n
��      ����<web-resource-collection>+
��      ��      ����<web-resource-name>
��      ��      ����<description>?
��      ��      ����<url-pattern>*
��      ��      ����<http-method>*
��      ����<auth-constraint>?
��      ��      ����<description>?
��      ��      ����<role-name>*
��      ����<user-data-constraint>?
��              ����<description>?
��              ����<transport-guarantee>
����<login-config>?
��      ����<auth-method>?
��      ����<realm-name>?
��      ����<form-login-config>?
��              ����<form-login-page>
��              ����<form-error-page>
����<security-role>*
��      ����<description>?
��      ����<role-name>
����<env-entry>*
��      ����<description>?
��      ����<env-entry-name>
��      ����<env-entry-value>?
��      ����<env-entry-type>
����<ejb-ref>*
��      ����<description>?
��      ����<ejb-ref-name>
��      ����<ejb-ref-type>
��      ����<home>
��      ����<remote>
��      ����<ejb-link>?
����<ejb-local-ref>*�m2.3�n
        ����<description>?
        ����<ejb-ref-name>
        ����<ejb-ref-type>
        ����<local-home>
        ����<local>
        ����<ejb-link>?

�@�e�v�f�̉E���̋L���́A�e�v�f�̓o��񐔂��������̂ŁA���ꂼ��̈Ӗ��͈ȉ��̕\�̂Ƃ���ł��B�܂��A�m2.3�n�͓��Y�v�f���T�[�u���b�g2.3�ȍ~�ł̂ݗ��p�”\�ł��邱�Ƃ������܂��B

�v�f�E���̋L���̈Ӗ�
�L�� �Ӗ�
�Ȃ� 1��̂ݓo��
* 0��ȏ�o��
+ 1��ȏ�o��
? 0�A�܂���1��o��

�@�e�q�v�f�̎g�����ɂ‚��ẮA�ʍe�ɂďЉ�܂��B

Copyright © ITmedia, Inc. All Rights Reserved.

'; if( !this.isSubscription ) { this.insertTarget = document.querySelector('#cmsBody .subscription') || document.querySelector('#cmsBody .inner'); } }; BodyAdIMSWithCCE.prototype = Object.create(BodyAdContent.prototype); BodyAdIMSWithCCE.prototype.activate = function () { refreshGam('InArtSpecialLink'); } // global reference window.itm = itm; //entry point BodyAdEventBase.polyfill(); const bodyAdManager = BodyAdManager.getInstance(); bodyAdManager.addEventListener(BodyAdManager.EVENTS.READY, function (ev) { bodyAdManager.loadAdvertise(); }); bodyAdManager.init(); })();
�X�|���T�[����̂��m�点PR

���ڂ̃e�[�}

4AI by IT - AIAAA
Microsoft  WindowsőO2025
AI for GWjAO
[R[h^m[R[h Zg by IT - ITGWjArWlX̒SŊ􂷂gD
Cloud Native Central by IT - XP[uȔ\͂gD
�V�X�e���J���m�E�n�E �y�����i�r�zPR
���Ȃ��ɂ������߂̋L��PR

RSS�ɂ‚���

�A�C�e�B���f�B�AID�ɂ‚���

���[���}�K�W���o�^

��IT�̃��[���}�K�W���́A �������A���ׂĖ����ł��B���Ѓ��[���}�K�W�������w�ǂ��������B