Changes for page URL Architecture
Last modified by Simon Urli on 2023/12/07
From version 11.1
edited by Thomas Mortagne
on 2021/06/08
on 2021/06/08
Change comment:
There is no comment for this version
To version 12.1
edited by Thomas Mortagne
on 2021/06/08
on 2021/06/08
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -32,17 +32,15 @@ 32 32 [[Here's an example of writing a custom ##class-rule##>>https://github.com/xwiki-contrib/url-rewrite-reference]]. 33 33 {{/info}} 34 34 35 -{{version before="13.0"}} 36 -= Struts Servlet Architecture = 35 += Legacy Actions Servlet Architecture = 37 37 38 -As shown above, when there's no Resource Reference Handler registered to handle a Resource Type, the rest of ##web.xml## is processed and if the URL type is ##bin## or ##wiki##, the S trutsServlet is then called and the following happens:37 +As shown above, when there's no Resource Reference Handler registered to handle a Resource Type, the rest of ##web.xml## is processed and if the URL type is ##bin## or ##wiki##, the Servlet in charge of the legacy actions is then called and the following happens: 39 39 40 40 {{image reference="xwiki-struts.png" width="800px"/}} 41 41 42 42 For example for the ##http:~/~/www.xwiki.org/xwiki/bin/view/Main/WebHome## URL, the following happens: 43 43 44 -* The URL path contains ##/view/## and thus the ##ViewAction.java## class is executed (configured in ##struts-config.xml##) and called by the Struts Action, itself configured in ##web.xml##.43 +* The URL path contains ##/view/## and thus the ##ViewAction.java## class is executed (because the role hint of ViewAction component is "view" since 13.0 or because it's configured in ##struts-config.xml## before 13.0) and called by the Legacy Action servlet (or Struts Servlet before 13.0), itself configured in ##web.xml##. 45 45 * The wiki is the main wiki in this example (since the server name starts by ##www##). See [[Accessing a wiki>>platform:AdminGuide.AccessWiki]] for more details on how wikis are accessed from URLs. 46 46 * ##ViewAction## specifies that ##view.vm## will be rendered using Velocity 47 47 * The space asked is ##Main## and the document's name is ##WebHome## 48 -{{/version}}