Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

This article is a Private article. Only a writer and users who know the URL can access it.
Please change open range to public in publish setting if you want to share this article with other users.

More than 5 years have passed since last update.

一部のみ認証を解除する。

Posted at
web.xml
<?xml version="1.0"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
 <display-name>strtus2 app</display-name>
 <filter>
  <description>struts2 action filter</description>
  <display-name>struts2</display-name>
  <filter-name>struts2</filter-name>
  <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
  <init-param>
   <description>action class apckages</description>
   <param-name>actionPackages</param-name>
   <param-value>action</param-value>
  </init-param>
 </filter>
 <filter-mapping>
  <filter-name>struts2</filter-name>
  <url-pattern>/*</url-pattern>
 </filter-mapping>
 <session-config>
  <session-timeout>30</session-timeout>
 </session-config>
 <welcome-file-list>
  <welcome-file>/index.html</welcome-file>
 </welcome-file-list>
 <jsp-config>
  <jsp-property-group>
   <url-pattern>*.jsp</url-pattern>
   <page-encoding>UTF-8</page-encoding>
   <include-prelude>/include/header.jspf</include-prelude>
  </jsp-property-group>
 </jsp-config>
 <security-constraint>
  <display-name>admin</display-name>
  <web-resource-collection>
   <web-resource-name>admin</web-resource-name>
   <url-pattern>/*</url-pattern>
  </web-resource-collection>
  <auth-constraint>
   <role-name>tomcat</role-name>
  </auth-constraint>
 </security-constraint>
 <security-constraint>
  <display-name>login</display-name>
  <web-resource-collection>
   <web-resource-name>login</web-resource-name>
   <url-pattern>/index.html</url-pattern>
  </web-resource-collection>
 </security-constraint>
 <login-config>
  <auth-method>BASIC</auth-method>
  <realm-name>MySqlUserDatabaseCombined</realm-name>
 </login-config>
 <security-role>
  <role-name>tomcat</role-name>
 </security-role>
</web-app>
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?