JavaWeb-JSP tag operation

A .JSP action tags

  1.JSP action with html tags or labels are essentially different;

    (1) JSP action tags is interpreted on the server side, the same as the Java code

    (2) html tags are parsed by the browser execution

  2. Common JSP tag

    (1) <jsp: forward>: This Servlet forward with the same request, is to forward to other pages in the jsp

     (2) <jsp: include>: Servlet with the request comprising the same, to be incorporated into other pages in the jsp; only one of the JSP, servlet, in a different wording, the same purpose

     (3) <jsp: param>: a <jsp: forward> and <jsp: include> subtag, used to pass parameters to be forwarded and the page is included, with the memory when the request to the Servlet similar domain; However, to Note that when the school Servlet client to the server parameter passing, server obtains parameters; and this is the parameter passing between the server

Guess you like

Origin www.cnblogs.com/ibcdwx/p/12321703.html