Normally, when we load the action, we submit the form, or click the button to launch the action request.
Now I want to implement a function: Open the homepage of a website from the database immediately read more than one of the different tables in the data displayed on the page. This is the time to initiate multiple action requests, and to initiate the request automatically.
The effect of the implementation:
The core code for implementation is as follows: The SRC tag is used to point to the action. The action is loaded automatically when the page loads
[HTML]View Plaincopy
- <%@ page language="java" contenttype="text/html; Charset=utf-8 " pageencoding=" UTF-8 "%>
- <%
- Request.setcharacterencoding ("UTF-8");
- %>
- <!doctype HTML>
- <html>
- <head>
- <meta charset="utf-8" />
- <title>kindeditor JSP</title>
- </head>
- <body>
- <iframe id= "mainframe" src= "findaction.action" name= " Mainframe " frameborder=" 0 " scrolling= "no" width= "1000px" height= "100px" span class= "tag" >></iframe>
- <iframe Id= "mainframe" src= " Findaction2.action " name=" mainframe " frameborder= "0" scrolling= "no" width= "1000px" < span class= "attribute" >height= "700px" > </iframe>
- </body>
- </html>
To open a JSP page automatically load multiple action implementations