主题 : jeecms2.4问题
级别: 秀才
UID: 25330
积分:68 加为好友
威望: 0 精华: 0
主题:5 回复:29
注册时间:2011-11-02
在线时长:0
1#   发表于:2011-11-04 17:10:48  IP:219.214.*.*
请问jeecms2.4,当输入http://localhost:8080/jeecms/后,弹出那个首页是怎么来的,看了半天还是不懂啊、、、
只发现这个首页跟webroot下得index.jspa有关,我想是在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>这个,然后被这几个拦截器拦截了
      <!--自定义拦截器-->
            <!--域名 拦截器-->
            <interceptor name="domain" class="com.jeecms.common.struts2.interceptor.DomainNameInterceptor" />
<!--URL 拦截器-->
            <interceptor name="url" class="com.jeecms.common.struts2.interceptor.UrlInterceptor" />
<!--请求执行开始时间拦截器-->
            <interceptor name="startTime" class="com.jeecms.common.struts2.interceptor.ProcessingStartInterceptor" />
当被UrlInterceptor拦截器拦截后,请求变成http://localhost:8080/jeecms/index.do,再后来不知道怎么回事了,求助!!!!!
级别: 总版主
UID: 10736
积分:149787 加为好友
威望: 212 精华: 42
主题:297 回复:127674
注册时间:2010-09-08
在线时长:90.1
2#   发表于:2011-11-05 09:35:19  IP:218.60.*.*
动态调用的,通过index模版,然后生成首页
路漫漫其修远兮,吾将上下而求索!
级别: 秀才
UID: 25330
积分:68 加为好友
威望: 0 精华: 0
主题:5 回复:29
注册时间:2011-11-02
在线时长:0
3#   发表于:2011-11-07 10:47:21  IP:112.149.*.*
呵呵,看明白是个怎么回事了
1 共1页