Skip to content

Commit

Permalink
Merge branch 'release/2.3.17'
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszlenart committed Apr 6, 2014
2 parents a77f28d + e1f97c8 commit 6d55d01
Show file tree
Hide file tree
Showing 404 changed files with 3,544 additions and 1,618 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
.project
.settings/

# OSX
.DS_Store

# Scripts
*.sh

Expand Down
8 changes: 7 additions & 1 deletion apps/blank/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@ For more on getting started with Struts, see

* http://cwiki.apache.org/WW/home.html

----------------------------------------------------------------------------
I18N:
=====
Please note that this project was created with the assumption that it will be run
in an environment where the default locale is set to English. This means that
the default messages defined in package.properties are in English. If the default
locale for your server is different, then rename package.properties to package_en.properties
and create a new package.properties with proper values for your default locale.
4 changes: 2 additions & 2 deletions apps/blank/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-apps</artifactId>
<version>2.3.16.1</version>
<version>2.3.18-SNAPSHOT</version>
</parent>

<artifactId>struts2-blank</artifactId>
<packaging>war</packaging>
<name>Blank Webapp</name>
<name>Struts 2 Blank Webapp</name>

<dependencies>

Expand Down
5 changes: 5 additions & 0 deletions apps/blank/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,9 @@
</auth-constraint>
</security-constraint>

<security-role>
<description>Don't assign users to this role</description>
<role-name>no-users</role-name>
</security-role>

</web-app>
8 changes: 7 additions & 1 deletion apps/jboss-blank/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@ For more on getting started with Struts, see

* http://cwiki.apache.org/WW/home.html

----------------------------------------------------------------------------
I18N:
=====
Please note that this project was created with the assumption that it will be run
in an environment where the default locale is set to English. This means that
the default messages defined in package.properties are in English. If the default
locale for your server is different, then rename package.properties to package_en.properties
and create a new package.properties with proper values for your default locale.
4 changes: 2 additions & 2 deletions apps/jboss-blank/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-apps</artifactId>
<version>2.3.16.1</version>
<version>2.3.18-SNAPSHOT</version>
</parent>

<artifactId>struts2-jboss-blank</artifactId>
<packaging>war</packaging>
<name>JBoss Blank Webapp</name>
<name>Struts 2 JBoss Blank Webapp</name>

<dependencies>

Expand Down
6 changes: 3 additions & 3 deletions apps/jboss-blank/src/main/resources/example.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
<package name="example" namespace="/example" extends="struts-default">

<action name="HelloWorld" class="example.HelloWorld">
<result>/example/HelloWorld.jsp</result>
<result>/WEB-INF/jsp/example/HelloWorld.jsp</result>
</action>

<action name="Login_*" method="{1}" class="example.Login">
<result name="input">/example/Login.jsp</result>
<result name="input">/WEB-INF/jsp/example/Login.jsp</result>
<result type="redirectAction">Menu</result>
</action>

<action name="*" class="example.ExampleSupport">
<result>/example/{1}.jsp</result>
<result>/WEB-INF/jsp/example/{1}.jsp</result>
</action>

<!-- Add actions here -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title><s:text name="HelloWorld.message"/></title>
</head>

<body>
<h2><s:property value="message"/></h2>

<h3>Languages</h3>
<ul>
<li>
<s:url id="url" action="HelloWorld">
<s:param name="request_locale">en</s:param>
</s:url>
<s:a href="%{url}">English</s:a>
</li>
<li>
<s:url id="url" action="HelloWorld">
<s:param name="request_locale">es</s:param>
</s:url>
<s:a href="%{url}">Espanol</s:a>
</li>
</ul>

</body>
</html>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title><s:text name="HelloWorld.message"/></title>
</head>

<body>
<h2><s:property value="message"/></h2>

<h3>Languages</h3>
<ul>
<li>
<s:url id="url" action="HelloWorld">
<s:param name="request_locale">en</s:param>
</s:url>
<s:a href="%{url}">English</s:a>
</li>
<li>
<s:url id="url" action="HelloWorld">
<s:param name="request_locale">es</s:param>
</s:url>
<s:a href="%{url}">Espanol</s:a>
</li>
</ul>

</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>Sign On</title>
</head>

<body>
<s:form action="Login">
<s:textfield key="username"/>
<s:password key="password" />
<s:submit/>
</s:form>
</body>
</html>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>Sign On</title>
</head>

<body>
<s:form action="Login">
<s:textfield key="username"/>
<s:password key="password" />
<s:submit/>
</s:form>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:include value="Missing.jsp"/>
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head><title>Missing Feature</title></head>

<body>
<p>
<s:text name="Missing.message"/>
</p>
</body>
</html>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head><title>Missing Feature</title></head>

<body>
<p>
<s:text name="Missing.message"/>
</p>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:include value="Missing.jsp"/>
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>Welcome</title>
<link href="<s:url value="/css/examplecss"/>" rel="stylesheet"
type="text/css"/>
</head>

<body>
<h3>Commands</h3>
<ul>
<li><a href="<s:url action="Login_input"/>">Sign On</a></li>
<li><a href="<s:url action="Register"/>">Register</a></li>
</ul>

</body>
</html>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>Welcome</title>
<link href="<s:url value="/css/examplecss"/>" rel="stylesheet"
type="text/css"/>
</head>

<body>
<h3>Commands</h3>
<ul>
<li><a href="<s:url action="Login_input"/>">Sign On</a></li>
<li><a href="<s:url action="Register"/>">Register</a></li>
</ul>

</body>
</html>
17 changes: 17 additions & 0 deletions apps/jboss-blank/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,21 @@
<welcome-file>index.html</welcome-file>
</welcome-file-list>

<!-- Restricts access to pure JSP files - access available only via Struts action -->
<security-constraint>
<display-name>No direct JSP access</display-name>
<web-resource-collection>
<web-resource-name>No-JSP</web-resource-name>
<url-pattern>*.jsp</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>no-users</role-name>
</auth-constraint>
</security-constraint>

<security-role>
<description>Don't assign users to this role</description>
<role-name>no-users</role-name>
</security-role>

</web-app>
9 changes: 7 additions & 2 deletions apps/mailreader/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,10 @@ For more about the MailReader applicaton genneraly, visit Struts University.

* http://www.StrutsUniversity.org/


----------------------------------------------------------------------------
I18N:
=====
Please note that this project was created with the assumption that it will be run
in an environment where the default locale is set to English. This means that
the default messages defined in package.properties are in English. If the default
locale for your server is different, then rename package.properties to package_en.properties
and create a new package.properties with proper values for your default locale.
4 changes: 2 additions & 2 deletions apps/mailreader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-apps</artifactId>
<version>2.3.16.1</version>
<version>2.3.18-SNAPSHOT</version>
</parent>

<artifactId>struts2-mailreader</artifactId>
<packaging>war</packaging>
<name>Mail Reader Webapp</name>
<name>Struts 2 Mail Reader Webapp</name>

<dependencies>

Expand Down
10 changes: 5 additions & 5 deletions apps/mailreader/src/main/java/mailreader-support.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</action>

<action name="Welcome" class="mailreader2.Welcome">
<result>/Welcome.jsp</result>
<result>/WEB-INF/jsp/Welcome.jsp</result>
<interceptor-ref name="guest"/>
</action>

Expand All @@ -21,7 +21,7 @@
</action>

<action name="Login_*" method="{1}" class="mailreader2.Login">
<result name="input">/Login.jsp</result>
<result name="input">/WEB-INF/jsp/Login.jsp</result>
<result name="cancel" type="redirectAction">Welcome</result>
<result type="redirectAction">MainMenu</result>
<result name="expired" type="chain">ChangePassword</result>
Expand All @@ -32,7 +32,7 @@
</action>

<action name="Registration_*" method="{1}" class="mailreader2.Registration">
<result name="input">/Registration.jsp</result>
<result name="input">/WEB-INF/jsp/Registration.jsp</result>
<result type="redirectAction">MainMenu</result>
<interceptor-ref name="guest"/>
</action>
Expand All @@ -41,7 +41,7 @@
<package name="subscription" namespace="/" extends="mailreader-support">

<global-results>
<result name="input">/Subscription.jsp</result>
<result name="input">/WEB-INF/jsp/Subscription.jsp</result>
<result type="redirectAction">Registration_input</result>
</global-results>

Expand All @@ -56,7 +56,7 @@
<package name="wildcard" namespace="/" extends="mailreader-support">

<action name="*" class="mailreader2.MailreaderSupport">
<result>/{1}.jsp</result>
<result>/WEB-INF/jsp/{1}.jsp</result>
</action>

</package>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions apps/mailreader/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,21 @@
<welcome-file>index.html</welcome-file>
</welcome-file-list>

<!-- Restricts access to pure JSP files - access available only via Struts action -->
<security-constraint>
<display-name>No direct JSP access</display-name>
<web-resource-collection>
<web-resource-name>No-JSP</web-resource-name>
<url-pattern>*.jsp</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>no-users</role-name>
</auth-constraint>
</security-constraint>

<security-role>
<description>Don't assign users to this role</description>
<role-name>no-users</role-name>
</security-role>

</web-app>
3 changes: 1 addition & 2 deletions apps/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-parent</artifactId>
<version>2.3.16.1</version>
<version>2.3.18-SNAPSHOT</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-apps</artifactId>
<packaging>pom</packaging>
<name>Struts 2 Webapps</name>
Expand Down
Loading

0 comments on commit 6d55d01

Please sign in to comment.