Its range of values is page,request,session,application.
${param.id} is related to input, relative to Request.getparameter ("id"). Gets the parameter ID of the input.
Because the a.jsp is committed to the b.jsp process, the ID does not belong to one of the page,request,session,application ranges, so it cannot be taken.
And the ID is a parameter that a.jsp passes to b.jsp, so ${param.id} takes the value.
The scope of the request refers to a JSP page that sends a request to another JSP page.
In a.jsp <%request.setattribute ("Key", "Test")%>
When a.jsp turn to b.jsp, b.jsp can get the value of the a.jsp variable key, while the other JSP pages are not.
The key here is a.jsp to turn to b.jsp, in a.jsp plus <jsp:forward page= "b.jsp"/> said to turn to b.jsp. Otherwise b.jsp cannot get the value of the key that a.jsp set.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service