On Tue, Apr 1, 2008 at 7:49 AM, Vivien Barousse <[EMAIL PROTECTED]> wrote: > Hi jiangjf. > > In roller, *.rol request aren't files, but are intercepted by the Struts > framework. These request are mapped to Java classes, called an "Action". > > Actions are mapped to Java classes thought /WEB-INF/classes/struts.xml. > > In this case, "/roller-ui/setup.rol" is mapped to the > org.apache.roller.weblogger.ui.struts2.core.Setup class. > > This class choose a title for this page (into the constructor), provides > some attributes (userCount and blogCount), and a particular method > "execute". This method is called every time a user request the > "/roller-ui/setup.rol". It just gives a value to userCount and > blogCount, and returns "SUCCESS". > > Back to struts.xml, we can see that the "success" result are mapped to a > tile named ".Setup". > > Tiles are mapped into /WEB-INF/tiles.xml. In our case, .Setup is a tile > which extends ".tiles-simplepage" and put an "content" attribute with > the "/WEB-INF/jsps/core/Setup.jsp" value. It means that the ".Setup" > tile is formed by the "/WEB-INF/jsps/core/Setup.jsp" page, inserted into > another tile named ".tiles-simplepage". > > This tile, once rendered, corresponds to the response for the > "/roller-ui/Setup.rol" request. > > For more about the struts framework, you can see the project website > (which contains great tutorials) at http://struts.apache.org/. > > Hope this was helpful. > > Vivien Barousse
Thanks! that's a very nice explanation. - Dave
