To open a JSP page automatically load multiple action implementations

Source: Internet
Author: User

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
  1. <%@ page language="java" contenttype="text/html; Charset=utf-8 " pageencoding=" UTF-8 "%>
  2. <%
  3. Request.setcharacterencoding ("UTF-8");
  4. %>
  5. <!doctype HTML>
  6. <html>
  7. <head>
  8. <meta charset="utf-8" />
  9. <title>kindeditor JSP</title>
  10. </head>
  11. <body>
  12.     <iframe  id= "mainframe"  src= "findaction.action"  name= " Mainframe " frameborder=" 0 "  scrolling= "no"  width= "1000px"  height= "100px" span class= "tag" >></iframe>  
  13.     <iframe  Id= "mainframe"  src= " Findaction2.action " name=" mainframe " frameborder= "0"  scrolling= "no"  width= "1000px"  < span class= "attribute" >height= "700px"  > </iframe>  
  14. </body>
  15. </html>

To open a JSP page automatically load multiple action implementations

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.