Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -28,3 +28,16 @@ 28 28 Note that using Tuckey's [[Rewrite Filter>>http://tuckey.org/urlrewrite/]] is very powerful as it also allows using dynamic rules written in Java by using the [[##<class-rule>##>>http://tuckey.org/urlrewrite/manual/4.0/index.html#class-rule]] feature. 29 29 {{/info}} 30 30 31 +== Struts Servlet Architecture == 32 + 33 +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 Struts Servlet is then called and the following happens: 34 + 35 +{{image reference="xwiki-struts.png"/}} 36 + 37 +For example for the ##http~:/~/www.xwiki.org/xwiki/bin/view/Main/WebHome## URL, the following happens: 38 + 39 +* 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##. 40 +* The wiki is the main wiki in this example (since the server name starts by ##www##). See [[Accessing a wiki>>AdminGuide.AccessWiki]] for more details on how wikis are accessed from URLs. 41 +* ##ViewAction## specifies that ##view.vm## will be rendered using Velocity 42 +* The space asked is ##Main## and the document's name is ##WebHome## 43 +