当前位置: 网学 > 编程文档 > 其他类别 > 正文

jeecms加载首页的过程

来源:Http://myeducs.cn 联系QQ:点击这里给我发消息 作者: 用户投稿 来源: 网络 发布时间: 13/08/11

文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学的各位小编整理了其他类别-jeecms加载首页的过程的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!

 

刚开始研究jeecms的时候很纳闷,找不到首页的加载页面。经过一番仔细研究,发现这个加载还是经过了很多曲折的过程的。整个程序的架构是ssh+freemarker模板构成的,所以先要熟悉freemarker模板技术。 先看web.xml文件,其中欢迎页面有:<welcome-file-list>     <welcome-file>index.jspa</welcome-file>     <welcome-file>index.do</welcome-file>     <welcome-file>index.html</welcome-file> </welcome-file-list> <welcome-file-list><welcome-file>index.jspa</welcome-file><welcome-file>index.do</welcome-file><welcome-file>index.html</welcome-file></welcome-file-list> 接着再看jeecms/core/struts-front.xml配置文件,发现有个action的通用配置: <action name="**" class="core.dynamicSystemAct">             <result type="chain">                 <param name="namespace">${namespace}</param>                 <param name="actionName">${actionName}</param>             </result>             <interceptor-ref name="exception"/>             <interceptor-ref name="domain"/>             <interceptor-ref name="cookieIdentity"/>             <interceptor-ref name="url"/>         </action>       <action name="**" class="core.dynamicSystemAct">    <result type="chain">     <param name="namespace">${namespace}</param>     <param name="actionName">${actionName}</param>    </result>    <interceptor-ref name="exception"/>    <interceptor-ref name="domain"/>    <interceptor-ref name="cookieIdentity"/>    <interceptor-ref name="url"/>   </action>   struts收到请求以后,将请求转发到core.dynamicSystemAct这个对象,注意这个这个class并不是真正的类,是类的别名,由spring通过标注@Controller进行绑定,web应用上下文可以通过classpath自动扫描到这个类。 view plaincopy to clipboardprint?@Controller("core.dynamicSystemAct")   public class DynamicSystemAct   @Controller("core.dynamicSystemAct")public class DynamicSystemAct 在这个action执行之前,先要执行好几个拦截器。其他struts和webwork自带的拦截器不必说,主要说一下在程序里面自定义的几个比较重要的拦截器(定义在jeecms/src/struts-default.xml文件中)。 DomainNameInterceptor UrlIntercepto
  • 上一篇资讯: 推荐18个Java开源CMS系统
  • 网学推荐

    免费论文

    原创论文

    浏览:
    设为首页 | 加入收藏 | 论文首页 | 论文专题 | 设计下载 | 网学软件 | 论文模板 | 论文资源 | 程序设计 | 关于网学 | 站内搜索 | 网学留言 | 友情链接 | 资料中心
    版权所有 QQ:3710167 邮箱:3710167@qq.com 网学网 [Myeducs.cn] 您电脑的分辨率是 像素
    Copyright 2008-2015 myeducs.Cn www.myeducs.Cn All Rights Reserved
    湘ICP备09003080号