Compare commits

..

1 Commits

Author SHA1 Message Date
Ted Nathan Husted 2ac88b92f1 [maven-scm] copy for tag struts2-parent-2.0.10
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10@574411 13f79535-47bb-0310-9956-ffa450edef68
2007-09-10 23:56:07 +00:00
44 changed files with 167 additions and 237 deletions
+4 -4
View File
@@ -4,7 +4,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-apps</artifactId>
<version>2.0.11.2</version>
<version>2.0.10</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-blank</artifactId>
@@ -12,9 +12,9 @@
<name>Blank Webapp</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/apps/blank/</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/apps/blank/</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/apps/blank/</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/struts2-parent-2.0.10</url>
</scm>
<dependencies>
+4 -4
View File
@@ -4,7 +4,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-apps</artifactId>
<version>2.0.11.2</version>
<version>2.0.10</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-mailreader</artifactId>
@@ -12,9 +12,9 @@
<name>Starter Webapp</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/apps/mailreader/</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/apps/mailreader/</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/apps/mailreader/</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/struts2-parent-2.0.10</url>
</scm>
<dependencies>
+1 -1
View File
@@ -6,7 +6,7 @@
<struts>
<constant name="struts.action.extension" value="do" />
<constant name="struts.devMode" value="true" />
<constant name="struts.devMode" value="false" />
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<include file="mailreader-default.xml"/>
+1 -4
View File
@@ -9,17 +9,14 @@
type="text/css"/>
</head>
<body onload="self.focus();document.Login.username.focus()">
<body onLoad="self.focus();document.Login.username.focus()">
<s:actionerror />
<s:text name="doesntexist" />
<s:form action="Login" validate="true">
<s:textfield key="username" />
<s:password key="password" showPassword="true"/>
<s:textfield name="doesntexist" />
<s:submit key="button.save"/>
<s:reset key="button.reset"/>
@@ -20,7 +20,6 @@
<li><a href="<s:url action="Logout"/>">
<s:text name="mainMenu.logout"/>
</a>
</li>
</ul>
</body>
</html>
@@ -14,7 +14,7 @@
type="text/css"/>
</head>
<body onload="self.focus();document.Registration_save_username.focus()">
<body onLoad="self.focus();document.Registration_save_username.focus()">
<s:actionerror/>
<s:form action="Registration_save" validate="false">
@@ -17,7 +17,7 @@
type="text/css"/>
</head>
<body onload="self.focus();document.Subscription.username.focus()">
<body onLoad="self.focus();document.Subscription.username.focus()">
<s:actionerror/>
<s:form action="Subscription_save" validate="true">
+29 -29
View File
@@ -182,36 +182,36 @@
&lt;display-name>Struts 2 MailReader&lt;/display-name>
<strong>&lt;filter&gt;
&lt;filter-name&gt;struts2&lt;/filter-name&gt;
&lt;filter-class&gt;
<strong>&lt;filter>
&lt;filter-name>struts2&lt;/filter-name>
&lt;filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
&lt;/filter-class&gt;
&lt;/filter&gt;</strong>
&lt;/filter-class>
&lt;/filter></strong>
&lt;filter-mapping&gt;
&lt;filter-name&gt;<strong>struts2</strong>&lt;/filter-name&gt;
&lt;url-pattern&gt;/*&lt;/url-pattern&gt;
&lt;/filter-mapping&gt;
&lt;filter-mapping>
&lt;filter-name><strong>struts2</strong>&lt;/filter-name>
&lt;url-pattern>/*&lt;/url-pattern>
&lt;/filter-mapping>
&lt;listener&gt;
&lt;listener-class&gt;
&lt;listener>
&lt;listener-class>
org.springframework.web.context.ContextLoaderListener
&lt;/listener-class&gt;
&lt;/listener&gt;
&lt;/listener-class>
&lt;/listener>
&lt;!-- Application Listener for MailReader database --&gt;
&lt;listener&gt;
&lt;listener-class&gt;
&lt;!-- Application Listener for MailReader database -->
&lt;listener>
&lt;listener-class>
mailreader2.ApplicationListener
&lt;/listener-class&gt;
&lt;/listener&gt;
&lt;/listener-class>
&lt;/listener>
&lt;welcome-file-list&gt;
&lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
&lt;/welcome-file-list&gt;
&lt;welcome-file-list>
&lt;welcome-file>index.html&lt;/welcome-file>
&lt;/welcome-file-list>
&lt;/web-app&gt;</code></pre>
&lt;/web-app></code></pre>
<hr/>
<p>
@@ -281,13 +281,13 @@
<hr/>
<h5>MailReader's index.html</h5>
<pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;
&lt;html&gt;&lt;head&gt;
&lt;META HTTP-EQUIV="Refresh" CONTENT="0;<strong>URL=Welcome.do</strong>"&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;Loading ...&lt;/p&gt;
&lt;/body&gt;&lt;/html&gt;</code></pre>
<pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
&lt;html>&lt;head>
&lt;META HTTP-EQUIV="Refresh" CONTENT="0;<strong>URL=Welcome.do</strong>">
&lt;/head>
&lt;body>
&lt;p>Loading ...&lt;/p>
&lt;/body>&lt;/html></code></pre>
<hr/>
<p>
+5 -6
View File
@@ -3,7 +3,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-parent</artifactId>
<version>2.0.11.2</version>
<version>2.0.10</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-apps</artifactId>
@@ -17,9 +17,9 @@
</modules>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/apps/</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/apps/</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/apps/</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/struts2-parent-2.0.10</url>
</scm>
<distributionManagement>
@@ -109,7 +109,6 @@
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>0.3.1</version>
<configuration>
<container>
<containerId>tomcat5x</containerId>
@@ -167,4 +166,4 @@
</dependency>
</dependencies>
</project>
</project>
+20 -20
View File
@@ -4,17 +4,17 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-apps</artifactId>
<version>2.0.11.2</version>
<version>2.0.10</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-portlet</artifactId>
<artifactId>struts2-portlet-branch</artifactId>
<packaging>war</packaging>
<name>Portlet Webapp</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/apps/portlet/</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/apps/portlet/</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/apps/portlet/</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/struts2-parent-2.0.10</url>
</scm>
<dependencies>
@@ -61,20 +61,20 @@
<artifactId>commons-lang</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.12</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.12</version>
</dependency>
</dependencies>
</project>
+4 -4
View File
@@ -4,7 +4,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-apps</artifactId>
<version>2.0.11.2</version>
<version>2.0.10</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-showcase</artifactId>
@@ -12,9 +12,9 @@
<name>Showcase Webapp</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/apps/showcase/</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/apps/showcase/</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/apps/showcase/</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/struts2-parent-2.0.10</url>
</scm>
+2 -2
View File
@@ -33,7 +33,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-parent</artifactId>
<version>2.0.11.2</version>
<version>2.0.10-SNAPSHOT</version>
</parent>
<scm>
@@ -103,7 +103,7 @@
<groupId>com.opensymphony</groupId>
<artifactId>xwork</artifactId>
<classifier>javadoc</classifier>
<version>2.0.5</version>
<version>2.0.4</version>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}/xwork-apidocs</outputDirectory>
+2 -2
View File
@@ -1,2 +1,2 @@
java -jar retrotranslator-transformer-1.2.2.jar -advanced -srcjar ../lib/struts2-core-2.0.11.2.jar -destjar struts2-core-j4-2.0.11.2.jar
java -jar retrotranslator-transformer-1.2.2.jar -advanced -srcjar ../lib/xwork-2.0.5.jar -destjar xwork-j4-2.0.5.jar
java -jar retrotranslator-transformer-1.2.0.jar -advanced -srcjar ../lib/struts2-core-2.0.9.jar -destjar struts2-core-j4-2.0.9.jar
java -jar retrotranslator-transformer-1.2.0.jar -advanced -srcjar ../lib/xwork-2.0.4.jar -destjar xwork-j4-2.0.4.jar
+2 -2
View File
@@ -1,3 +1,3 @@
#!/bin/sh
java -jar retrotranslator-transformer-1.2.2.jar -advanced -srcjar ../lib/struts2-core-2.0.11.2.jar -destjar struts2-core-j4-2.0.11.2.jar
java -jar retrotranslator-transformer-1.2.2.jar -advanced -srcjar ../lib/xwork-2.0.5.jar -destjar xwork-j4-2.0.5.jar
java -jar retrotranslator-transformer-1.2.0.jar -advanced -srcjar ../lib/struts2-core-2.0.9.jar -destjar struts2-core-j4-2.0.9.jar
java -jar retrotranslator-transformer-1.2.0.jar -advanced -srcjar ../lib/xwork-2.0.4.jar -destjar xwork-j4-2.0.4.jar
+6 -6
View File
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-parent</artifactId>
<version>2.0.11.2</version>
<version>2.0.10</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-core</artifactId>
@@ -34,9 +34,9 @@
<name>Struts 2 Core</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/core/</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/core/</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/core/</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/struts2-parent-2.0.10</url>
</scm>
<build>
@@ -56,7 +56,7 @@
<artifactItem>
<groupId>com.opensymphony</groupId>
<artifactId>xwork</artifactId>
<version>2.0.5</version>
<version>2.0.4</version>
<classifier>sources</classifier>
</artifactItem>
</artifactItems>
@@ -294,7 +294,7 @@
<dependency>
<groupId>com.opensymphony</groupId>
<artifactId>xwork</artifactId>
<version>2.0.5</version>
<version>2.0.4</version>
</dependency>
<dependency>
@@ -60,7 +60,7 @@ public abstract class AbstractRemoteCallUIBean extends ClosingUIBean implements
super.evaluateExtraParams();
if (href != null)
addParameter("href", ensureAttributeSafelyNotEscaped(findString(href)));
addParameter("href", findString(href));
if (errorText != null)
addParameter("errorText", findString(errorText));
if (loadingText != null)
@@ -323,26 +323,6 @@ public class Component {
}
}
/**
* Renders an action URL by consulting the {@link org.apache.struts2.dispatcher.mapper.ActionMapper}.
* @param action the action
* @param namespace the namespace
* @param method the method
* @param req HTTP request
* @param res HTTP response
* @param parameters parameters
* @param scheme http or https
* @param includeContext should the context path be included or not
* @param encodeResult should the url be encoded
* @return the action url.
*/
@Deprecated
protected String determineActionURL(String action, String namespace, String method,
HttpServletRequest req, HttpServletResponse res, Map parameters, String scheme,
boolean includeContext, boolean encodeResult) {
return determineActionURL(action, namespace, method, req, res, parameters, scheme, includeContext, encodeResult, false, true);
}
/**
* Renders an action URL by consulting the {@link org.apache.struts2.dispatcher.mapper.ActionMapper}.
* @param action the action
@@ -354,8 +334,6 @@ public class Component {
* @param scheme http or https
* @param includeContext should the context path be included or not
* @param encodeResult should the url be encoded
* @param forceAddSchemeHostAndPort should the scheme host and port be added to the url no matter what
* @param escapeAmp should the ampersands used separate parameters be escaped or not
* @return the action url.
*/
protected String determineActionURL(String action, String namespace, String method,
@@ -363,7 +341,7 @@ public class Component {
boolean includeContext, boolean encodeResult, boolean forceAddSchemeHostAndPort,
boolean escapeAmp) {
String finalAction = findString(action);
String finalMethod = method != null ? findString(method) : method;
String finalMethod = method != null ? findString(method) : method;
String finalNamespace = determineNamespace(namespace, getStack(), req);
ActionMapping mapping = new ActionMapping(finalAction, finalNamespace, finalMethod, parameters);
String uri = actionMapper.getUriFromActionMapping(mapping);
@@ -21,9 +21,7 @@
package org.apache.struts2.components;
import java.text.ParseException;
import java.text.MessageFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import javax.servlet.http.HttpServletRequest;
@@ -131,10 +129,8 @@ import com.opensymphony.xwork2.util.ValueStack;
public class DateTimePicker extends UIBean {
final public static String TEMPLATE = "datetimepicker";
// Backported changes from s2 trunk (r657936)
// final private static SimpleDateFormat RFC3339_FORMAT = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
final private static String RFC3339_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";
final private static String RFC3339_PATTERN = "{0,date," + RFC3339_FORMAT + "}";
final private static SimpleDateFormat RFC3339_FORMAT = new SimpleDateFormat(
"yyyy-MM-dd'T'HH:mm:ss");
final protected static Log LOG = LogFactory.getLog(DateTimePicker.class);
protected String iconPath;
@@ -298,14 +294,12 @@ public class DateTimePicker extends UIBean {
return null;
if(obj instanceof Date) {
return MessageFormat.format(RFC3339_PATTERN, (Date) obj);
} else if(obj instanceof Calendar) {
return MessageFormat.format(RFC3339_PATTERN, ((Calendar) obj).getTime());
return RFC3339_FORMAT.format((Date) obj);
} else {
// try to parse a date
String dateStr = obj.toString();
if(dateStr.equalsIgnoreCase("today"))
return MessageFormat.format(RFC3339_PATTERN, new Date());
return RFC3339_FORMAT.format(new Date());
try {
Date date = null;
@@ -313,7 +307,7 @@ public class DateTimePicker extends UIBean {
SimpleDateFormat format = new SimpleDateFormat(
(String) getParameters().get("displayFormat"));
date = format.parse(dateStr);
return MessageFormat.format(RFC3339_PATTERN, date);
return RFC3339_FORMAT.format(date);
} else {
// last resource to assume already in correct/default format
return dateStr;
@@ -790,20 +790,6 @@ public abstract class UIBean extends Component {
}
}
/**
* Ensures an unescaped attribute value cannot be vulnerable to XSS attacks
*
* @param val The value to check
* @return The escaped value
*/
protected String ensureAttributeSafelyNotEscaped(String val) {
if (val != null) {
return val.replaceAll("\"", "&#34;");
} else {
return "";
}
}
protected void evaluateExtraParams() {
}
@@ -26,10 +26,10 @@ import java.util.Map;
/**
* Actions that want access to the user's HTTP session should implement this interface.<p>
* <p/>
* This will give them access to a Map where they can put objects that can be made available
* to subsequent requests.<p/>
* This interface is only relevant if the Action is used in a servlet environment.<p>
* <p/>
* Typical uses may be cached user data such as name, or a shopping cart.
* Note that using this interface makes the Action tied to a servlet environment, so it should be
* avoided if possible since things like unit testing will become more difficult.
*
*/
public interface SessionAware {
@@ -188,14 +188,10 @@ public class UrlHelper {
buildParametersString(params, link, "&");
}
String result = link.toString();
while (result.indexOf("<script>") > 0) {
result = result.replaceAll("<script>", "script");
}
String result;
try {
result = encodeResult ? response.encodeURL(result) : result;
result = encodeResult ? response.encodeURL(link.toString()) : link.toString();
} catch (Exception ex) {
// Could not encode the URL for some reason
// Use it unchanged
@@ -131,10 +131,8 @@ public abstract class AbstractAdapterNode implements AdapterNode {
public Node getChildBeforeOrAfter(Node child, boolean before) {
log.debug("getChildBeforeOrAfter: ");
List adapters = getChildAdapters();
if (log.isDebugEnabled()) {
log.debug("childAdapters = " + adapters);
log.debug("child = " + child);
}
log.debug("childAdapters = " + adapters);
log.debug("child = " + child);
int index = adapters.indexOf(child);
if (index < 0)
throw new StrutsException(child + " is no child of " + this);
@@ -253,7 +251,7 @@ public abstract class AbstractAdapterNode implements AdapterNode {
+ ((next == null) ? "null" : next.getNodeName()));
}
return next;
return getParent().getChildAfter(this);
}
public Node getPreviousSibling() {
@@ -22,6 +22,7 @@ package org.apache.struts2.views.xslt;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.Writer;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
@@ -314,6 +315,8 @@ public class XSLTResult implements Result {
try {
HttpServletResponse response = ServletActionContext.getResponse();
Writer writer = response.getWriter();
// Create a transformer for the stylesheet.
Templates templates = null;
Transformer transformer;
@@ -351,11 +354,13 @@ public class XSLTResult implements Result {
LOG.debug("xmlSource = " + xmlSource);
transformer.transform(xmlSource, new StreamResult(out));
out.flush(); // ...and flush...
out.close(); // ...and flush...
if (LOG.isDebugEnabled()) {
LOG.debug("Time:" + (System.currentTimeMillis() - startTime) + "ms");
}
writer.flush();
} catch (Exception e) {
LOG.error("Unable to render XSLT Template, '" + location + "'", e);
throw e;
@@ -140,8 +140,6 @@ dojo.widget.defineWidget(
if(this.executeScripts) {
//update targets content
var parsed = this.parse(data);
this.setContent(parsed.text);
//eval scripts
if(parsed.scripts && parsed.scripts.length > 0) {
var scripts = "";
@@ -150,6 +148,7 @@ dojo.widget.defineWidget(
}
(new Function('_container_', scripts+'; return this;'))(this);
}
this.setContent(parsed.text);
}
else {
this.setContent(data);
@@ -30,7 +30,7 @@
<#assign itemKey = stack.findValue('top')/>
</#if>
<#if parameters.listValue?exists>
<#assign itemValue = stack.findString(parameters.listValue)?default("")/>
<#assign itemValue = stack.findString(parameters.listValue)/>
<#else>
<#assign itemValue = stack.findString('top')/>
</#if>
@@ -52,4 +52,4 @@
</@s.iterator>
<#else>
&nbsp;
</#if>
</#if>
@@ -56,18 +56,4 @@ public class AnchorTest extends AbstractUITagTest {
verify(AnchorTest.class.getResource("href-1.txt"));
}
public void testSimpleBadQuote() throws Exception {
TestAction testAction = (TestAction) action;
testAction.setFoo("bar");
AnchorTag tag = new AnchorTag();
tag.setPageContext(pageContext);
tag.setId("mylink");
tag.setHref("a\"");
tag.doStartTag();
tag.doEndTag();
verify(AnchorTest.class.getResource("href-2.txt"));
}
}
@@ -140,8 +140,7 @@ public class CheckboxListTest extends AbstractUITagTest {
testAction.setFoo("hello");
testAction.setList(new String[][]{
{"hello", "world"},
{"foo", "bar"},
{"baz", null}
{"foo", "bar"}
});
CheckboxListTag tag = new CheckboxListTag();
@@ -5,7 +5,5 @@
<label for="foo-1" class="checkboxLabel">world</label>
<input type="checkbox" name="foo" value="foo" id="foo-2" title="mytitle" onchange="alert('foo');"/>
<label for="foo-2" class="checkboxLabel">bar</label>
<input type="checkbox" name="foo" value="baz" id="foo-3" title="mytitle" onchange="alert('foo');"/>
<label for="foo-3" class="checkboxLabel"></label>
</td>
</tr>
@@ -1,4 +0,0 @@
<a
id="mylink"
href="a&#34;">
</a>
+4 -4
View File
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-plugins</artifactId>
<version>2.0.11.2</version>
<version>2.0.10</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-codebehind-plugin</artifactId>
@@ -34,9 +34,9 @@
<name>Struts 2 Codebehind Plugin</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/codebehind/</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/codebehind/</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/plugins/codebehind/</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/struts2-parent-2.0.10</url>
</scm>
<dependencies>
+4 -4
View File
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-plugins</artifactId>
<version>2.0.11.2</version>
<version>2.0.10</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-config-browser-plugin</artifactId>
@@ -34,9 +34,9 @@
<name>Struts 2 Configuration Browser Plugin</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/config-browser/</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/config-browser/</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/plugins/config-browser/</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/struts2-parent-2.0.10</url>
</scm>
<dependencies>
+4 -4
View File
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-plugins</artifactId>
<version>2.0.11.2</version>
<version>2.0.10</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-jasperreports-plugin</artifactId>
@@ -34,9 +34,9 @@
<name>Struts 2 Jasper Reports Plugin</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/jasperreports/</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/jasperreports/</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/plugins/jasperreports/</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/struts2-parent-2.0.10</url>
</scm>
<dependencies>
+4 -4
View File
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-plugins</artifactId>
<version>2.0.11.2</version>
<version>2.0.10</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-jfreechart-plugin</artifactId>
@@ -34,9 +34,9 @@
<name>Struts 2 JFreeChart Plugin</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/jfreechart/</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/jfreechart/</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/plugins/jfreechart/</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/struts2-parent-2.0.10</url>
</scm>
<profiles>
+4 -4
View File
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-plugins</artifactId>
<version>2.0.11.2</version>
<version>2.0.10</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-jsf-plugin</artifactId>
@@ -34,9 +34,9 @@
<name>Struts 2 JSF Plugin</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/jsf/</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/jsf/</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/plugins/jsf/</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/struts2-parent-2.0.10</url>
</scm>
<dependencies>
+4 -4
View File
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-plugins</artifactId>
<version>2.0.11.2</version>
<version>2.0.10</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-pell-multipart-plugin</artifactId>
@@ -34,9 +34,9 @@
<name>Struts 2 Pell Multipart Plugin</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/pell-multipart/</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/pell-multipart/</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/plugins/pell-multipart/</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/struts2-parent-2.0.10</url>
</scm>
<dependencies>
+4 -4
View File
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-plugins</artifactId>
<version>2.0.11.2</version>
<version>2.0.10</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-plexus-plugin</artifactId>
@@ -34,9 +34,9 @@
<name>Struts 2 Plexus Plugin</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/plexus/</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/plexus/</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/plugins/plexus/</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/struts2-parent-2.0.10</url>
</scm>
<dependencies>
+4 -4
View File
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-parent</artifactId>
<version>2.0.11.2</version>
<version>2.0.10</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-plugins</artifactId>
@@ -34,9 +34,9 @@
<name>Struts Plugins</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/</connection>
<developerConnection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/</developerConnection>
<url>http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</connection>
<developerConnection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</developerConnection>
<url>http://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</url>
</scm>
<modules>
+4 -4
View File
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-plugins</artifactId>
<version>2.0.11.2</version>
<version>2.0.10</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-sitegraph-plugin</artifactId>
@@ -34,9 +34,9 @@
<name>Struts 2 Sitegraph Plugin</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/sitegraph/</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/sitegraph/</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/plugins/sitegraph/</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/struts2-parent-2.0.10</url>
</scm>
<build>
+4 -4
View File
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-plugins</artifactId>
<version>2.0.11.2</version>
<version>2.0.10</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-sitemesh-plugin</artifactId>
@@ -34,9 +34,9 @@
<name>Struts 2 Sitemesh Plugin</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/sitemesh/</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/sitemesh/</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/plugins/sitemesh/</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/struts2-parent-2.0.10</url>
</scm>
<dependencies>
+4 -4
View File
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-plugins</artifactId>
<version>2.0.11.2</version>
<version>2.0.10</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-spring-plugin</artifactId>
@@ -34,9 +34,9 @@
<name>Struts 2 Spring Plugin</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/spring/</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/spring/</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/plugins/spring/</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/struts2-parent-2.0.10</url>
</scm>
<dependencies>
+4 -4
View File
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-plugins</artifactId>
<version>2.0.11.2</version>
<version>2.0.10</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-struts1-plugin</artifactId>
@@ -34,9 +34,9 @@
<name>Struts 2 Struts 1 Plugin</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/struts1/</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/struts1/</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/plugins/struts1/</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/struts2-parent-2.0.10</url>
</scm>
<dependencies>
+4 -4
View File
@@ -26,7 +26,7 @@
<parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-plugins</artifactId>
<version>2.0.11.2</version>
<version>2.0.10</version>
</parent>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-tiles-plugin</artifactId>
@@ -34,9 +34,9 @@
<name>Struts 2 Tiles Plugin</name>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/tiles/</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/tiles/</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/plugins/tiles/</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/struts2-parent-2.0.10</url>
</scm>
<dependencies>
+5 -5
View File
@@ -9,7 +9,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-parent</artifactId>
<version>2.0.11.2</version>
<version>2.0.10</version>
<packaging>pom</packaging>
<name>Struts 2</name>
<url>http://struts.apache.org/struts2</url>
@@ -28,9 +28,9 @@
-->
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/trunk/</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/trunk/</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/trunk/</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/struts/struts2/tags/struts2-parent-2.0.10</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/struts/struts2/tags/struts2-parent-2.0.10</url>
</scm>
<issueManagement>
@@ -253,7 +253,7 @@
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<useReleaseProfile>false</useReleaseProfile>
+3 -3
View File
@@ -32,17 +32,17 @@
</div>
<div>
<table><tr><td>
<a href="http://struts.apache.org/download.cgi#struts20112">
<a href="http://struts.apache.org/download.cgi#struts206">
<div style="background:url(images/download.gif) no-repeat scroll 0%; width:200px; min-height:80px; float:left;position:relative;margin:5px">
<span style="top:15px;position:absolute;color:white;padding-left:10px">
<small>version 2.0.11.2</small>
<small>version 2.0.8</small>
<br />
<span style="font-weight: bold; font-size:140%">Download Now</span>
</span>
</div>
</a>
</td><td>
<a href="http://struts.apache.org/2.0.11.2/docs/home.html" style="margin:10px">
<a href="http://struts.apache.org/2.x/docs/home.html" style="margin:10px">
<div style="background:url(images/help.gif) no-repeat scroll 0%; width:200px; min-height:80px; float:left;position:relative;margin:5px">
<span style="top:15px;position:absolute;color:white;padding-left:10px">
<span style="font-weight: bold; font-size:140%">Get Started</span>