JSP brief

  Benpian knowledge maps

  Speaking JSP, then what do curriculum design with all of this, although the technology is relatively old, but still very widely used.

  JSP is a foreground presentation language, which belongs to the presentation layer in mvc. It mainly consists of static and dynamic two parts, including static HTML, dynamic is java. This makes the original static website, you can add our own procedures to make it intelligent.

  how to use?

  1 Comment

<!-- XXX --> 或者 <%-- XXX --%>

  2 declare functions or variables

<%! 在这里面声明 %>

  3 implementation of java

<% 在这里面写程序 %>

  4 Output

<%=输出想要输出的东西 %>

  JSP has used what command?

  1 page for the current page

  2 include other page contains a .js or .jsp 

  3 taglib define or access tags

  JSP action command?

  1 forward page turning, but the URL will not change

  2 param transmission parameters

  3 include the introduction of another page

  4 plugin download javabean

  5 useBean use javaBean

  6 setProperty property values ​​set javabean

  7 getProperty get javaBean property value

  JSP objects are what?

  1 application web application itself, will be used throughout the web application (for example usage scenario: the number of access users)

  2 config JSP configuration information

  3 exception exception or error object, if a page error, error page is not set, the system will automatically jump error page.

  When 4 out page response, the output content

  5 page page itself,

  6 pageContext JSP context, shared data access page

  7 request request object

  8 response response objects

  9 session session object

  

Reproduced in: https: //my.oschina.net/u/204616/blog/545326

Guess you like

Origin blog.csdn.net/weixin_33700350/article/details/91989306
jsp
Recommended