WW-1349 Various minor updates to prepare for Struts 2.0.0.

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@447068 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ted Nathan Husted
2006-09-17 14:09:09 +00:00
parent c6a00902aa
commit 522abf29c0
7 changed files with 21 additions and 85 deletions
@@ -5,13 +5,16 @@ package example;
*/
public class HelloWorld extends ExampleSupport {
public static final String MESSAGE = "HelloWorld.message";
public String execute() throws Exception {
setMessage(getText(MESSAGE));
return SUCCESS;
}
/**
* Provide default valuie for Message property.
*/
public static final String MESSAGE = "HelloWorld.message";
/**
* Field for Message property.
*/
+8 -9
View File
@@ -2,15 +2,15 @@
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Acme Corp</display-name>
<display-name>Struts Blank</display-name>
<filter>
<filter-name>action2</filter-name>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>action2</filter-name>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
@@ -19,18 +19,17 @@
</listener>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
<!--
This typically isn't required, as the taglib is included in struts-core.jar.
If you really need a taglib configuration within web.xml, copy struts/src/java/META-INF/taglib.tld
to the WEB-INF directory as tags.tld.
If you really need a taglib configuration within web.xml,
copy struts2-core/core/src/main/resources/META-INF/struts-tags.tld
to the WEB-INF directory as struts-tags.tld.
-->
<!--taglib>
<taglib-uri>tags</taglib-uri>
<taglib-location>/WEB-INF/tags.tld</taglib-location>
<taglib-uri>/s</taglib-uri>
<taglib-location>/WEB-INF/struts-tags.tld</taglib-location>
</taglib-->
</web-app>
-3
View File
@@ -66,9 +66,6 @@
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
+8
View File
@@ -6,4 +6,12 @@ For more on getting started with Struts, see
* http://cwiki.apache.org/WW/home.html
WARNING - Additional configuration required for deployment
Due to difference in portlet contrainer implementations, the porlet
WAR is not ready-to-run. Extract the porlet WAR, and then copy the
contents of apps/portlet/src/main/etc/<your_portal_server>/ into the
WAR's WEB-INF directory.
----------------------------------------------------------------------------
@@ -1,39 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<include file="struts-default.xml"/>
<package name="tutorial-default" extends="struts-default" namespace="/tutorial">
<action name="Welcome">
<result>Welcome.jsp</result>
</action>
</package>
<package name="tutorial-hello" extends="tutorial-default">
<action name="HelloWorld" class="org.apache.struts2.showcase.tutorial.HelloWorld">
<result>HelloWorld.jsp</result>
</action>
</package>
<package name="tutorial-actions" extends="tutorial-default">
<action name="HelloName" class="org.apache.struts2.showcase.tutorial.HelloName">
<result>HelloName-success.jsp</result>
<result name="error">HelloName-error.html</result>
</action>
<action name="HelloName2" class="org.apache.struts2.showcase.tutorial.HelloName2">
<result>HelloName2-success.jsp</result>
<result name="error">HelloName-error.html</result>
</action>
</package>
</struts>
-16
View File
@@ -112,14 +112,6 @@
<include>src/</include>
</includes>
</fileSet>
<fileSet>
<directory>../apps/shopping-cart</directory>
<outputDirectory>src/apps/shopping-cart</outputDirectory>
<includes>
<include>pom.xml</include>
<include>src/</include>
</includes>
</fileSet>
<fileSet>
<directory>../apps/showcase</directory>
<outputDirectory>src/apps/showcase</outputDirectory>
@@ -128,14 +120,6 @@
<include>src/</include>
</includes>
</fileSet>
<fileSet>
<directory>../apps/starter</directory>
<outputDirectory>src/apps/starter</outputDirectory>
<includes>
<include>pom.xml</include>
<include>src/</include>
</includes>
</fileSet>
<fileSet>
<directory>../assembly</directory>
<outputDirectory>src/assembly</outputDirectory>
-16
View File
@@ -92,14 +92,6 @@
<include>src/</include>
</includes>
</fileSet>
<fileSet>
<directory>../apps/shopping-cart</directory>
<outputDirectory>src/apps/shopping-cart</outputDirectory>
<includes>
<include>pom.xml</include>
<include>src/</include>
</includes>
</fileSet>
<fileSet>
<directory>../apps/showcase</directory>
<outputDirectory>src/apps/showcase</outputDirectory>
@@ -108,14 +100,6 @@
<include>src/</include>
</includes>
</fileSet>
<fileSet>
<directory>../apps/starter</directory>
<outputDirectory>src/apps/starter</outputDirectory>
<includes>
<include>pom.xml</include>
<include>src/</include>
</includes>
</fileSet>
<fileSet>
<directory>../assembly</directory>
<outputDirectory>src/assembly</outputDirectory>