Struts2/JSP/HTML page automatically jump method

2010-03-16  来源:本站原创  分类:Web  人气:199 

1) Body to achieve the use of JS

<script type="text/javascript">
         this.location.href="/provision/login/login";
  </script>

2) use the response.sendRedirect JSP

<%
         response.sendRedirect("login/login")
 %>

3) The head of the attributes used to achieve

<META HTTP-EQUIV="Refresh" CONTENT="0;URL=login/login">
相关文章
  • Struts2/JSP/HTML page automatically jump method 2010-03-16

    1) Body to achieve the use of JS <script type="text/javascript"> this.location.href="/provision/login/login"; </script> 2) use the response.sendRedirect JSP <% response.sendRedirect("login/login") %> 3) The

  • Page automatically jump code 2010-12-24

    <! - P / * page code, the code is automatically jump in <ht--> Code I. Behind the increase in the sentence <html> <meta HTTP-EQUIV=REFRESH CONTENT="2;URL=your.web"> Where content = "seconds after the jump; url = jump pa

  • Javascript refresh the page framework and method of the total set 2010-08-24

    First look at a simple example: The following were named to three pages frame.html, top.html, bottom.html example to specify what to do. frame.html by the previous (top.html) under (bottom.html) composed of two pages, the code is as follows: <!DOCTYP

  • JSP page Jump method Xiangjie 2010-04-20

    1. RequestDispatcher.forward () Porting role in the server, when using the forward () when, Servlet engine passed from the current HTTP request to another Servlet or JSP Servlet, JSP or regular HTML files, but also the form that you submit to a.jsp,

  • Five jump method JSP page 2010-07-19

    . RequestDispatcher.forward () function in the server porting, when using the forward () when, Servlet engine passed from the current HTTP request to another Servlet or JSP Servlet, JSP or regular HTML files, ie your form is submitted to a . jsp, in

  • [Zhuantie] JSP page Jump Method 2010-10-04

    1. RequestDispatcher.forward () Porting role in the server, when using the forward () when, Servlet engine to pass from the current HTTP request to another Servlet or JSP Servlet, JSP or regular HTML file, your form is submitted to the a.jsp, in a. j

  • struts2 login page jump method to dynamically request 2009-10-11

    Implementation functions: the need for users to login before viewing the page before the Canadian interceptors, jump to the landing page, log on automatically jump to the requested page; 1. Interceptor access to jump information respones.setAttribute

  • Jump on the page automatically set the system time delay 2009-05-26

    Sometimes there is such a demand, when required after the completion of an operation to set a period of time delay, giving the user a friendly interface, you can use html page, and then automatically jump to another page, this feature set with a very

  • Aired flash animation code automatically jump to a page 2010-03-27

    Aired flash animation code automatically jump to a page getURL ("siteindex.htm", _self); This carried over: http://www.5uflash.com/flashjiaocheng/Flashjichucaozuo/5361.html

  • Loading the page automatically loads the js method 2010-05-31

    Loading the page automatically loads the js way to achieve closure of the current window: window.onload=function(){ closeAndReload(); } function closeAndReload(){ window.close(); }

  • Five methods automatically jump page 2010-07-22

    The following five examples out details, the main function of these examples are: in 5 seconds, automatically jump to the same directory hello.html (according to their need to modify) files. 1) html implementation <head> <meta http-equiv="re

  • Struts2 Tutorial 4: Use the validate method validation data 2010-07-21

    In the "Struts2 Tutorial 4: Use the validate method validation data" had talked about using the validate method to validate the data submitted by the client, but if the validate method will be used to verify the code and code mixed with the norm

  • About jsp in page, request, session, application scope of the difference between 2010-03-26

    application: the global scope, the entire application program sharing, is the deployment of file sharing in the same webApp life cycle: the application start to stop. session: the session scope, when users first visit, create a new session, after the

  • JSP "grasping" page code procedures 2008-10-18

    JSP "grasping" page code procedures are as follows: <% @ page c%> "% String sCurrentLine; String sTotalString; sCurrentLine = ""; sTotalString = ""; java.io.InputStream l_urlStream; java.net.URL l_url = new java.ne

  • HTML code is collected automatically jump 2010-03-29

    Two domain names with a space automatically jump in ASP code Code <% If Request.ServerVariables ("SERVER_NAME") = "cdpy.com" then response.redirect "default.asp" else%> <% End if%> <% If Request.ServerVariables

  • Web n seconds automatically jump 2010-05-02

    Web n seconds automatically jump <META HTTP-EQUIV="Refresh" CONTENT="20; URL=JudgeOnline">

  • HTML page automatically jumps to five Implementation 2010-07-17

    The following five examples out details, the main function of these examples are: in 5 seconds, automatically jump to the same directory hello.html (according to their need to modify) files. 1) html implementation <head> <meta http-equiv="re

  • n seconds automatically jump to other pages 2010-07-22

    <html> <head> <title> </ title> <script language='javascript' type='text/javascript'> var secs = 5; / / seconds countdown var URL; function Load (url) ( URL = url; for (var i = secs; i> = 0; i -) ( window.setTimeout ('doUp

  • Generated JSP HTML page Freemarker development process 2010-08-23

    Generated JSP HTML page Freemarker development process

  • JSP语法Page指令 2013-12-15

    Page 指令 定义JSP文件中的全局属性. JSP 语法 <%@ page [ language="java" ] [ extends="package.class" ] [ import="{package.class | package.*}, ..." ] [ session="true | false" ] [ buffer="none | 8kb | sizekb" ] [ autoFlu