| WebSpark is a Web framework which is complied with the MVC design pattern and is developed by Java. Briefness, easy to use and agility are the design targets of WebSpark.First WebSpark also represents a based-on-components design idea. WebSpark receives the http request from the server-side container. Then it parses the request's path information and maps it to a special business-logical object. After that the business-logical object executes some related function as the request requires and transports the result to the interceptors. The interceptors gets the configure information from the XML file by using the XMLBeans and XPath and gives the result handed from the business-logical object a further operation. At last, WebSpark returns the finally result as the response for the http request to the client side.Implementing the WebSpark, some popular technology has been used, such as the design pattem, Java 1.5 new feature, Annotation, Generics, XML, XMLBeans, XPath, Schema. Totally, WebSpark's control layer design is clear and reasonable. It's an easily extend, practical and flexible web framework. |