Home >Java >javaTutorial >What does forward mean?

What does forward mean?

藏色散人
藏色散人Original
2019-05-18 14:14:3017836browse

What does forward mean?

forward is used to forward the request to an HTML file, JSP file, or a program segment. Forwarding here means that the previous request remains unchanged and continues to be processed by the forwarded file or program.

Syntax

<jsp:forward page={"relativeURL" | "<%= expression %>"} />
or
<jsp:forward page={"relativeURL" | "<%= expression %>"} >
<jsp:param name="parameterName"
value="{parameterValue | <%= expression %>}" />+
</jsp:forward>

Description

92423d002bc765050f29203a344f804c tag passes a from one JSP file to another Contains the request object requested by the user. The code below the 92423d002bc765050f29203a344f804c tag will not be executed.

You can pass parameters and values ​​​​to the target file. In this example, the parameter name we pass is username and the value is scott. If you use the 078ec931e0bb94c6112fc4c6db0a398c tag, the target file must be a Dynamic files, able to handle parameters.

If you use non-buffered output, be careful when using 92423d002bc765050f29203a344f804c. If the jsp file already has data before you use 92423d002bc765050f29203a344f804c, then an error will occur during file execution.

The above is the detailed content of What does forward mean?. For more information, please follow other related articles on the PHP Chinese website!

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