刚注册了个博客,先转载篇,不然博客空空的。^_^。
转载地址:http://www.castleproject.org/monorail/documentation/v1rc2/manual/howitworks.html
MonoRail can be view as another implementation of IHttpHandler. It basically extracts information from the Url and searches for a controller in a binary tree. If found, the controller is created and from that point on, the controller handles the request.



 

The controller is able to select the action (method) to invoke, process the arguments (in the case of SmartDispatcherController) and delegate the execution to it.

When the action returns, the controller checks if a view was selected (and no redirect was issued). If so the ViewEngine is invoked to process the selected view, which renders the content directly to the client's browser.

As MonoRail runs on top of Asp.Net infrastructure (not to be confused with WebForms) it takes advantage of all features like Session management, Application/Request level events and security.

posted on 2007-10-24 11:29  hailsorm  阅读(123)  评论(2编辑  收藏  举报