Home >Web Front-end >HTML Tutorial >JSP page jump page with parameters_html/css_WEB-ITnose

JSP page jump page with parameters_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-24 11:52:311902browse

1.

or

2. Pass parameter test

3.< ;jsp:forward page="index2.jsp">
      

Both can be obtained through ${param.xxx } or in the index2.jsp page.

Note:

param Its value range is Page, Request, Session, Application.

${param.name} is equivalent to request.getParameter("name"), {param[name]} is also the same

${params.name} is equivalent In request.getParameterValues("name")

Note:

1. ${requestScope.name} is equivalent to request.getAttribute("name")

2. The above does not indicate which scope to take from, so the four scopes are detected in order

3. It is best to use ${xxsScope.name} instead of ${param.name}


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn