FAQ

[Velocity-commits] svn commit: r1149367 - in /velocity/tools/branches/2.0.x: src/main/java/org/apache/velocity/tools/struts/StrutsLinkTool.java xdocs/changes.xml

Schultz
Jul 21, 2011 at 9:09 pm
Author: schultz
Date: Thu Jul 21 21:08:46 2011
New Revision: 1149367

URL: http://svn.apache.org/viewvc?rev=1149367&view=rev
Log:
Fixed VELTOOLS-145: StrutsLinkTool is not a drop-in replacement for previous versions because it extends view.LinkTool instead of view.tools.LinkTool
- Changed parent class

Modified:
velocity/tools/branches/2.0.x/src/main/java/org/apache/velocity/tools/struts/StrutsLinkTool.java
velocity/tools/branches/2.0.x/xdocs/changes.xml

Modified: velocity/tools/branches/2.0.x/src/main/java/org/apache/velocity/tools/struts/StrutsLinkTool.java
URL: http://svn.apache.org/viewvc/velocity/tools/branches/2.0.x/src/main/java/org/apache/velocity/tools/struts/StrutsLinkTool.java?rev=1149367&r1=1149366&r2=1149367&view=diff
==============================================================================
--- velocity/tools/branches/2.0.x/src/main/java/org/apache/velocity/tools/struts/StrutsLinkTool.java (original)
+++ velocity/tools/branches/2.0.x/src/main/java/org/apache/velocity/tools/struts/StrutsLinkTool.java Thu Jul 21 21:08:46 2011
@@ -21,7 +21,7 @@ package org.apache.velocity.tools.struts

import javax.servlet.ServletContext;
import org.apache.velocity.tools.generic.ValueParser;
-import org.apache.velocity.tools.view.LinkTool;
+import org.apache.velocity.tools.view.tools.LinkTool;
import org.apache.velocity.tools.view.ViewContext;

/**
@@ -148,5 +148,4 @@ public class StrutsLinkTool extends Link
}
return (StrutsLinkTool)absolute(url);
}
-
}

Modified: velocity/tools/branches/2.0.x/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/velocity/tools/branches/2.0.x/xdocs/changes.xml?rev=1149367&r1=1149366&r2=1149367&view=diff
==============================================================================
--- velocity/tools/branches/2.0.x/xdocs/changes.xml (original)
+++ velocity/tools/branches/2.0.x/xdocs/changes.xml Thu Jul 21 21:08:46 2011
@@ -37,6 +37,7 @@
<li>correct handling and better reporting of commited responses in error() (cb)</li>
<li>Added a custom number formats cache in ConversionUtils (cb)</li>
<li>fixed VELTOOLS-144 added localization of DateFormat format strings (schultz)</li>
+ <li>fixed VELTOOLS-145 changed StrutsLinkTool's parent class to restore API backward-compatibility</li>
</ul>
</subsection>
reply

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post

1 user in discussion

Schultz: 1 post