📄 jsp-intro.xtp
字号:
<document> <header> <product>resin</product> <title>Overview</title> <description> <p> JSP creates a document (such as HTML) from <em>template</em> text and scripting <em>actions</em>. Template text is returned verbatim to the requesting client, and actions are used to fill in dynamic values and do things conditionallly. </p> </description> </header><body><s1 title="JSP"><p>Resin supports Sun's JSP 2.0 specification. JSP creates an HTMLpage from HTML <em>template</em> text, <em>tag libraries</em> andscripting <em>actions</em>. Resin supports the JSTL standard taglibrary, the development of custom tag libraries, and Java as thescripting language.</p><example><% String title="Counter"; %><html> <head><title><%= title %></title></head><body bgcolor='white'><jsp:useBean id='counter' class='Counter' scope='application'/><h1><%= title %></h1>Welcome, visitor <%= counter.getHit() %>!</body></html></example><p>JSP supports an equivalent XML syntax. The XML has the benefit ofconsistency with the price of some extra verbosity.</p><example><jsp:scriptlet>String title="Counter"; </jsp:scriptlet><html><head><title><jsp:expression>title</jsp:expression></title></head><body bgcolor='white'><jsp:useBean id='counter' class='Counter' scope='application'/><h1><jsp:expression> title </jsp:expression></h1>Welcome, visitor <jsp:expression> counter.getHit()</jsp:expression>!</body></html></example></s1></body></document>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -