When the foreground calls the background interface, you need to put some parameters in the request header, and the background does not return the data but jumps to the page.

when the foreground calls the background interface, you need to take some parameters in the request header, and the processing done in the background is a simple page jump. For example,
@ RequestMapping ("/ a")
public String index () {

return "index";

}
how do I request from the receptionist?
I have always thought that the parameters of header cannot be put. After using ajax, I will return the contents of the index page to
urgent!

Apr.07,2021

send back the path to be redirected directly, and the receptionist will receive the path and take it with localtion= "path".

if you need page redirection, use form, background to redirect directly


this simple jump does not need to go through the background


pass parameters:

<c:set var="menu_item" value="code" scope="request" />
<c:import url="../tiles/header.jsp" />

receive parameters:

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<header>
    <div>${menu_item}</div>            
</header>
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b360cc-2bff7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b360cc-2bff7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?