Passing values between pages ===============
Use the built-in object request to a page
<%request.setAttribute("txt", "Life service") %>
The second page
<% String txt = request.getAttribute("txt") %> (attribute)
<th><%=txt %></th>
can also pass the "life service" of a page as a parameter (?txt=life service) to The second page, use <%request.getParameter("txt") %> to get it (parameters)
This is equivalent to the value stack, or you can directly use <input type="hidden" name="roleid" id="roleid" value="${id}">
var roleId=$("#roleid").val();//This implements jsp--js//Hidden domain
<%> accepts background transfers to htm hidden domain
js submit background, get htm
htm expression get <%>, call js
js, <%> communicate through hidden domain
Value transfer between pages, js jsp html
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326813003&siteId=291194637
Recommended
Ranking