[text]
JSP uses JSP Forward Action to implement the jump function of the page. Grammar:
Value = "{ParameterValue | <% = expression%>}" /> jsp: forward> This action allows you to go to another page forward. It has only one attribute, Page. Page should have a relatively URL composition. This can be a static value or can be calculated when the value is being requested, as two examples below: Now use a specific example: Use the Forward in Test1.jsp to jump to the TEST2.JSP page. TEST1.JSP
HEAD>! SupportemptyParas]>
TEST2.JSP
HEAD>! SupportemptyParas]>
Run Test1.jsp, you can see in your browser: "This is the output information of the output of the JSP2.jsp page". But what if you have parameter passed in two pages in Test1.jsp and Test2.jsp? With the GET mode, not only the total length is limited, it is very inconvenient to use, and sometimes it is still not safe. In fact, we can completely use the PARA properties provided in Forward in JSP 1.1. Now it is described with Test3.jsp and Test4.jsp. ! SupportemptyParas]>
TEST1.JSP
HEAD>! SupportemptyParas]>
TEST2.JSP
! SupportemptyParas]>
HEAD>
! SupportemptyParas]>
<%
Out.println ("This is the output of the JSP4.jsp page" "
");
Out.println ("Name:" Request.GetParameter ("Name") "
");
Out.println ("Address:" Request.getParameter ("Address") "
");
! SupportemptyParas]>
%>
Body>
Html>
Run Test3.jsp, you can see the output information in the browser: "This is the output of the JSP4.JSP page. Name: PowerMan Address: No. 188, Beijing West Street