Changes for page URL Architecture
Last modified by Simon Urli on 2023/12/07
From version 10.1
edited by Mohammad Humayun Khan
on 2021/05/10
on 2021/05/10
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 (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. DamianArado1 +XWiki.ThomasMortagne - Content
-
... ... @@ -32,15 +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 -= Struts Servlet Architecture =35 += Legacy Actions Servlet Architecture = 36 36 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 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: 38 38 39 39 {{image reference="xwiki-struts.png" width="800px"/}} 40 40 41 41 For example for the ##http:~/~/www.xwiki.org/xwiki/bin/view/Main/WebHome## URL, the following happens: 42 42 43 -* 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##. 44 44 * 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. 45 45 * ##ViewAction## specifies that ##view.vm## will be rendered using Velocity 46 46 * The space asked is ##Main## and the document's name is ##WebHome##