Home  >  Article  >  Database  >  JSP教程(六)-怎么在JSP中跳转到别一页面_MySQL

JSP教程(六)-怎么在JSP中跳转到别一页面_MySQL

WBOY
WBOYOriginal
2016-06-01 14:08:131054browse

在JSP中使用jsp forward Action来实现页面的跳转功能。

  语法:





  这个action使您可以将request向前到另外一个页面。它只有一个属性,page。Page应有一个相对的URL组成。这可以是一个静态的值或者是能够在被请求的时候计算得到的值,就如下面两个例子一般:




!supportEmptyParas]>

  现在以一个具体例子来说明:在test1.jsp中使用forward使其跳转到test2.jsp页面中。

Test1.jsp


forward test
!supportEmptyParas]>

!supportEmptyParas]>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn