`
zpball
  • 浏览: 909994 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

配置welcome-file-list跳转

阅读更多

web.xml里是

<welcome-file>index.html</welcome-file>

index.html内容:
<meta http-equiv='refresh'  content='0;url=index.action'>
,这样当访问index.html的时候立即跳转到index.action里。


分享到:
评论

相关推荐

    Structs中基本配置入门

    &lt;welcome-file-list&gt; &lt;welcome-file&gt;welcome.jsp&lt;/welcome-file&gt; &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt; &lt;/welcome-file-list&gt; ``` - `&lt;welcome-file&gt;`:定义了欢迎文件的列表,当没有指定文件名时,会按照列表...

    jsp(实现首页动态)java

    1. **定义欢迎页面**:在`web.xml`配置文件中定义欢迎页面列表`&lt;welcome-file-list&gt;`,该列表中可以指定多个文件名,Web容器会按照顺序尝试加载这些文件作为网站的首页。 ```xml &lt;welcome-file-list&gt; &lt;welcome-...

    Web.xml配置文件.pdf

    3. `&lt;welcome-file-list&gt;`:设置默认首页,当用户访问目录而不是具体文件时,Servlet容器会尝试加载这些文件。例如: ```xml &lt;welcome-file-list&gt; &lt;welcome-file&gt;index.html&lt;/welcome-file&gt; &lt;welcome-file&gt;index...

    在web.xml中配置action或.do

    - 在`web.xml`中找到`&lt;welcome-file-list&gt;`标签,并在其中添加刚创建的`go.action`文件名。 ```xml &lt;welcome-file-list&gt; &lt;welcome-file&gt;go.action&lt;/welcome-file&gt; &lt;/welcome-file-list&gt; ``` - 这样做可以让...

    ssh集成文档代码

    在`web.xml`中,可以通过`&lt;welcome-file-list&gt;`元素指定当用户访问根目录时应显示的页面。例如: ``` &lt;welcome-file-list&gt; &lt;welcome-file&gt;/backend/login.jsp&lt;/welcome-file&gt; &lt;/welcome-file-list&gt; ``` 这意味着,...

    JSP配置文件解释

    `&lt;welcome-file-list&gt;`元素指定默认的欢迎页面,当用户访问目录而非具体文件时,服务器将尝试加载这些文件。例如: ```xml &lt;welcome-file-list&gt; &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt; &lt;/welcome-file-list&gt; ```...

    Myeclipse中Tomcat的两种部署方

    为了设置默认主页,可以在Web应用的`WEB-INF/web.xml`中添加`&lt;welcome-file-list&gt;`元素,如下: ```xml &lt;welcome-file-list&gt; &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt; &lt;/welcome-file-list&gt; ``` 这样,当用户访问`...

    web.xml 2.4详细说明

    &lt;/welcome-file-list&gt; ``` ### 8. `error-page`节点 当发生特定错误时,`error-page`可以指定一个页面来处理错误。 ```xml &lt;error-page&gt; &lt;error-code&gt;404&lt;/error-code&gt; &lt;location&gt;/notfound.jsp &lt;/error-page&gt; `...

    解决使用struts2 时 访问web工程首页问题

    ##### 步骤3:调整web.xml中的welcome-file-list配置 虽然Struts2可能会覆盖`web.xml`中的welcome file设置,但仍然可以在其中指定首页文件。这样做的好处是可以确保即使在Struts2配置出错的情况下,用户仍然能够...

    javaWeb学习笔记.pdf

    &lt;/welcome-file-list&gt; ``` 以上是对JavaWeb学习笔记中的JSP相关知识点进行了详细总结,包括JSP的基本概念、部署方式、编码设置、动态交互流程以及页面跳转等内容。希望对你学习JavaWeb有所帮助。

    jsp自动调用action

    - 在项目的`web.xml`文件中,配置欢迎页列表`&lt;welcome-file-list&gt;`,将`temp.jsp`设置为第一个被加载的页面。 ```xml &lt;welcome-file-list&gt; &lt;welcome-file&gt;temp.jsp&lt;/welcome-file&gt; &lt;/welcome-file-list&gt; ``` ...

    springSecurity3入门级文档.doc

    如果希望自定义登录页面,可以创建 `login.jsp` 并在配置中指定,如 `welcome-file-list` 中所示。 ### 8. 错误处理 在配置中,`access-denied-page` 指定了访问被拒绝时跳转的页面,例如 `403.jsp`。同样,可以...

    Struts+Spring+Ibatis整合框架搭建配置文档

    &lt;/welcome-file-list&gt; ``` #### 二、Spring配置文件`applicationContext.xml`的修改 接下来,我们来看如何修改Spring的配置文件`applicationContext.xml`。 ##### 1. 配置JDBC数据源驱动文件 首先,创建`jdbc....

    如何修改FineReport报表平台中数据决策系统登陆地址

    &lt;welcome-file-list&gt; &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt; &lt;/welcome-file-list&gt; ``` 这里指定了当访问根目录时,服务器应该加载的文件为`index.jsp`。 2. **创建或修改`index.jsp`文件**:在Tomcat...

    简单的jsf登录

    - ** welcome-file-list**:指定默认页面,例如`index.xhtml`,当用户访问应用时首先加载此页面。 ```xml &lt;web-app&gt; ... &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt; &lt;servlet-class&gt;javax.faces.webapp....

    关于Web.xml配置说明

    - `welcome-file-list`:当请求目录而非具体文件时,服务器会尝试加载这些欢迎文件。 - `error-page`:配置错误页面,根据错误代码或异常类型跳转到指定页面。 - `taglib`:允许改变TLD文件的位置,不影响JSP页面...

    MyEclipse+JBoss开发部署jsp和servlet入门源码

    &lt;welcome-file-list&gt; &lt;welcome-file&gt;hello.jsp&lt;/welcome-file&gt; &lt;/welcome-file-list&gt; &lt;/web-app&gt; ``` 现在,我们的项目已经准备好了。在`MyEclipse`中,右键点击项目,选择`Run As` -&gt; `Run on Server`,选择...

Global site tag (gtag.js) - Google Analytics