[JSP] web.xml에서 JSP 보안 설정을 하는 방법[JSP] web.xml에서 JSP 보안 설정을 하는 방법

Posted at 2014. 4. 4. 15:58 | Posted in IT/JSP
홈페이제작업체 NuGuWeb

web.xml에서 *.jsp 패턴의 모든 URL에 대해서 누구도 실행을 할수 없게 설정하는 방법

<Security-constraint>

<web-resource-collection>

<web-resource-name></web-resource-name>

<url-pattern>*.jsp</url-pattern>

<http-method>GET</http-method>

<http-method>POST</http-method>

</web-resource-collection>

</Security-constraint>

 

</web-app> 안에서 정의를 해주시면 됩니다~

//