Commits

Anonymous committed 83b391e

Need way to specify empty stacko patch applied
o applied suggested fix.
o added emptyStack to xwork-default.xml
o updated some test config file DTD mappings
NOTE: Since the patch is fully backwards compliant, there shouldn't be an issue for existing applications.

Issue Number: XW-496

git-svn-id: http://svn.opensymphony.com/svn/xwork/branches/2.0@1421e221344d-f017-0410-9bd5-d282ab1896d7

Comments (0)

Files changed (4)

src/java/xwork-2.0.dtd

     class CDATA #REQUIRED
 >
 
-<!ELEMENT interceptor-stack (interceptor-ref+)>
+<!ELEMENT interceptor-stack (interceptor-ref*)>
 <!ATTLIST interceptor-stack
     name CDATA #REQUIRED
 >

src/java/xwork-default.xml

   
   
   			<!-- START SNIPPET: xwork2-default-interceptor-stack -->
+            <interceptor-stack name="emptyStack"/>
   
             <interceptor-stack name="defaultStack">
                 <interceptor-ref name="static-params"/>

src/test/xwork-sample.xml

 <!DOCTYPE xwork PUBLIC
-    "-//OpenSymphony Group//XWork 1.1.1//EN"
-    "http://www.opensymphony.com/xwork/xwork-1.1.1.dtd"
+    "-//OpenSymphony Group//XWork 2.0//EN"
+    "http://www.opensymphony.com/xwork/xwork-2.0.dtd"
  >
  <!-- "file:///temp/ross/xwork/src/etc/xwork-1.0.dtd"  -->
 

src/test/xwork-test-default.xml

 <!DOCTYPE xwork PUBLIC
-    "-//OpenSymphony Group//XWork 1.1.1//EN"
-    "http://www.opensymphony.com/xwork/xwork-1.1.1.dtd"
+    "-//OpenSymphony Group//XWork 2.0//EN"
+    "http://www.opensymphony.com/xwork/xwork-2.0.dtd"
  >
 
 <xwork>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.