struts-configxml中contextRelative=true是什么
2008-11-10 17:29
447 查看
struts-configxml中contextRelative=true是什么
假如当前路径为http://localhost/moduleA/
<forward name="..." path="/target.jsp" redirect="true" contextRelative="false"/>
执行以上forward时会转向http://localhost/moduleA/target.jsp
如contextRelative="true"时,会转向http://localhost/target.jsp
在struts1.1以上,通常使用module="/moduleA"代替
contextRelative 设为true时表示当前path属性以/开头时,给出的是相对于当前上下文的url。默认为false
假如当前路径为http://localhost/moduleA/
<forward name="..." path="/target.jsp" redirect="true" contextRelative="false"/>
执行以上forward时会转向http://localhost/moduleA/target.jsp
如contextRelative="true"时,会转向http://localhost/target.jsp
在struts1.1以上,通常使用module="/moduleA"代替
contextRelative 设为true时表示当前path属性以/开头时,给出的是相对于当前上下文的url。默认为false
相关文章推荐
- 拦截器和过滤器有什么区别(JAVA/struts2.0)
- struts中ActionForm有什么作用?
- struts组件,UI组件,标签,模板究竟是什么(2)
- 在Struts + Spring + Hibernate的组合框架模式中,三者各自的特点都是什么
- SSH中 struts hibernate spring 各起什么作用
- SSH中 struts hibernate spring 各起什么作用?
- 什么是Struts
- struts.properties在什么地方,struts.properties在哪里,怎么修改struts.properties
- 你对MVC的理解,MVC有什么优缺点?结合Struts,说明在一个Web应用如何去使用?
- 2. 讲下SpringMvc的核心入口类是什么,Struts1,Struts2的分别是什么
- 2. 讲下SpringMvc的核心入口类是什么,Struts1,Struts2的分别是什么
- Struts1 中 什么是动态ActionForm 与静态ActionForm
- Struts,Spring,Hibernate分别什么作用?
- 拦截器和过滤器有什么区别(JAVA/struts2.0)
- 讲下SpringMvc的核心入口类是什么,Struts1,Struts2的分别是什么
- 讲下SpringMvc的核心入口类是什么,Struts1,Struts2的分别是什么
- SSH中 struts hibernate spring 各起什么作用
- SSH中 struts hibernate spring 各起什么作用
- JAVA三大框架Struts、hibernate和spring的各自作用是什么?
- Struts和spring分别是什么?