Overview Midwinter高性能的web开发框架,集成了 Webwork2 ,Spring ,Hibernate ,包括了构架在 Middlegen上的代码生成工具以及一个Demo的权限管理系统. Feature List 高性能:集成了GZIPFilter,EHcache提高系统性能. 柔性:使用了Pipeline(管道),Valve(阀门)来灵活处理系统中的事务. Xwork(Command Pattern Framework):灵活的可定制的用户接口. 拦截器:开发者可以灵活定义Xwork中的Interceptor. 集成了webwork2和Spring:开发者直接在xwork.xml配置文件中配置使用那个组件来提供服务. Role Base权限管理系统:一个User-Group-Role-Permission的权限系统,包括认证,授权,加密等. 动态校验:HTC静态校验和运行期间Interceptor validation相结合. 工作流系统:集成了OSWorkflow作为工作流系统. Web UI组件:包括Tree,Tabs,Contextmenu.Toolbar等组件. ModelDriven:NOT FormBean.不要再为你的每个Action带上FormBean而烦恼. DisplayTag:用velocity作为模板扩展了DisplayTag. Custom Result:根据不同的需求定义不同的输出格式,eg.JFreeChartResult,XmlTreeResult. XmlHttp:以XmlHttp代替传统的http,并对xml进行压缩以提供速度,get,post方法可以使用xml方式提供灵活程度. 汉字转换为拼音:输入代码后,系统会根据字库直接把汉字的拼音和首拼音字母提取出来.该功能用在代码选择上,比如输入"sh"然后按ctrl系统会发出xmlhttp get返回匹配项,如下图 WebWork2 Feature List inversion of control AOP-like interceptors for all actions . packaging of actions, components and views. flexible view types. a faster, compiled expression language in OGNL . a bunch of prebuilt interceptors and result types that ship with the framework. 扩展Xwork 和 Spring 对Webwork2,Xwork,Spring的扩展 WebWork2 Spring Integration applicationContext.xml Warning securityService必须在GrantGroupRoleAction中定义,并提供get,set方法 xwork.xml securityService /security/groups/listRolesInGroup.jsp listRolesInGroup Permissions Interceptor ${admin} securityService