<user username="admin" password="admin" roles="admin,manager"/>
<Context path="/StrutsBlank" reloadable="true" docBase="C:\eclipse\workspace\StrutsBlank" workDir="C:\eclipse\workspace\StrutsBlank\work" />これは、eclipse の StrutsBlank?プロジェクト の workspaceディレクトリ がそのまま webアプリ になっていることを意味する。
html/jsp files | C:\eclipse\workspace\StrutsBlank? |
プリコンパイル済jsp files | C:\eclipse\workspace\StrutsBlank?\work |
web.xml etc. | C:\eclipse\workspace\StrutsBlank?\WEB-INF |
java source files | C:\eclipse\workspace\StrutsBlank?\WEB-INF\src |
java class files | C:\eclipse\workspace\StrutsBlank?\WEB-INF\classes |
jar files | C:\eclipse\workspace\StrutsBlank?\WEB-INF\lib |
<welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list>
<logic:redirect forward="welcome"/>
<global-forwards> <forward name="welcome" path="/Welcome.do"/> </global-forwards>
<servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping>
<action-mappings> <action path="/Welcome" forward="/pages/Welcome.jsp"/> ・・・ </action-mappings>
<h3><bean:message key="welcome.heading"/></h3> <p><bean:message key="welcome.message"/></p>
welcome.title=Struts Blank Application welcome.heading=Welcome! welcome.message=To get started on your own application, copy the struts-blank.war to a new WAR file using the name for your application. Place it in your container's "webapp" folder (or equivalent), and let your container auto-deploy the application. Edit the skeleton configuration files as needed, restart your container, and you are on your way! (You can find the application.properties file with this message in the /WEB-INF/src/java/resources folder.)
<message-resources parameter="java.resources.application" />に記述されている。
struts-blankにあわせて、Eclipseのビルド環境を変更します