Spring3mvc automatically returns to the parent window list page after the pop-up window form is submitted

Source: Internet
Author: User

Method:

@ Requestmapping (value = "/Save") Public String save (httpservletresponse response) {// jump out of the Framework Window IFRAME and directly return to the printwriter out = response. getwriter (); out. print ("<SCRIPT> window. parent. location. href = 'LIST'; </SCRIPT> "); out. flush ();}

Other problems:

Problem: In the pop-up window, click the link to request data and display the result data in the parent window?

Solution: In the pop-up window, use the parameter "target" in link properties!

<A href = "EQU/List" class = "button" target = "_ parent"> return list </a>

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.