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>
Menu