Thanks for pointing these out, but please feel free to take the next
step and correct them. By editing the original Confluence pages, found
at http://cwiki.apache.org/confluence/display/WW, these snippet errors
can be corrected.
The reason so many are broken is that the pages were pointing to XWork
1, so I turned off those prefixes, which broke the snippets. All we
need to do is point the snippets to XWork 2.
The snippet plugin works by allowing the administrator to set allowed
"prefixes" that snippets can have. For our instance, the following
prefixes are defined:
Prefix URL
struts2/ http://svn.apache.org/repos/asf/struts/struts2/trunk/
com.opensymphony.xwork2.
http://svn.opensymphony.com/svn/xwork/trunk/src/java/com/opensymphony/xwork2/
org.apache.struts2.
http://svn.apache.org/repos/asf/struts/struts2/trunk/core/src/main/java/org/apache/struts2/
org.apache.struts2.views.tiles.
http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/tiles/src/main/java/org/apache/struts2/views/tiles/
org.apache.struts2.sitegraph.
http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/sitegraph/src/main/java/org/apache/struts2/sitegraph/
xwork2/ http://svn.opensymphony.com/svn/xwork/trunk/
people/ http://people.apache.org/
org.apache.struts2.sitemesh.
http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/sitemesh/src/main/java/org/apache/struts2/sitemesh/
openejb3/
http://svn.apache.org/repos/asf/incubator/openejb/trunk/openejb3/
Take the case of the validation.html page. There are several snippets
that use the "xwork/" prefix, so it should be updated to "xwork2/".
Most of the errors will probably be just that easy.
See also: http://confluence.atlassian.com/display/CONFEXT/Snippet+Plugin
Don
Musachy Barroso wrote:
Macro snippet errors:
http://struts.apache.org/2.x/docs/validation.html
http://struts.apache.org/2.x/docs/type-conversion.html
http://struts.apache.org/2.x/docs/localization.html
http://struts.apache.org/2.x/docs/action-chaining.html
http://struts.apache.org/2.x/docs/interceptors.html
http://struts.apache.org/2.x/docs/chain-result.html
http://struts.apache.org/2.x/docs/stream-result.html
http://struts.apache.org/2.x/docs/ajax-theme.html
Broken:
http://struts.apache.org/2.x/S2PLUGINS/spring-plugin.html (on
http://struts.apache.org/2.x/docs/guides.html)
http://struts.apache.org/2.x/S2PLUGINS/plexus-plugin.html (on
http://struts.apache.org/2.x/docs/guides.html)
http://struts.apache.org/2.x/S2PLUGINS/home.html (on
http://struts.apache.org/2.x/docs/guides.html)
http://struts.apache.org/2.x/S2PLUGINS/tiles-result.html (on
http://struts.apache.org/2.x/docs/result-types.html)
http://struts.apache.org/2.x/apidocs/index.html
(on http://struts.apache.org/2.x/docs/guides.html)
http://struts.apache.org/2.x/S2WIKI/home.html (on
http://struts.apache.org/2.x/docs/home.html)
Small error here:
http://struts.apache.org/2.x/docs/portlet-configuration.html
regards
musachy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]