Home > Java > javaTutorial > What does forward mean?

What does forward mean?

藏色散人
Release: 2019-05-22 09:40:10
Original
17843 people have browsed it

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>
Copy after login

Description

tag passes a from one JSP file to another Contains the request object requested by the user. The code below the 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 tag, the target file must be a Dynamic files, able to handle parameters.

If you use non-buffered output, be careful when using . If the jsp file already has data before you use , 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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template