📄 jsp.xtp
字号:
<s1 title="JSP"><p>Resin supports Sun's JSP 1.2 specification. JSP creates an HTMLpage from HTML <em>template</em> text and scripting <em>actions</em>.Resin supports Java and JavaScript as scripting languages for JSP pages.</p><example><var/<%@ page language=javascript %><% var title='Counter' %>/><html><head><title><var/<%= title %>/></title></head><body bgcolor='white'><var/<jsp:useBean id='counter' class='Counter' scope='application'/>/><h1><var/<%= title %>/></h1>Welcome, visitor <var/<%= counter.hit %>/>!</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><var><jsp:directive.page language=javascript/><jsp:scriptlet>var title='Counter' %</jsp:scriptlet></var><html><head><title><var><jsp:expression>title</jsp:expression></var></head><body bgcolor='white'><var/<jsp:useBean id='counter' class='Counter' scope='application'/>/><h1><var><jsp:expression> title </jsp:expression></var></h1>Welcome, visitor <var><jsp:expression> counter.hit</jsp:expression></var>!</body></html></example><defun name='Actions' title="Actions"><p><a href='jsp-actions.xtp'>Actions</a> are the core of JSP.Actions range from printing the a script expression, to creating andstoring a Java Bean.</p></defun><defun name='Custom Tag Libraries' title="Custom Tag Libraries"><p>Resin encourages the creation of <a href='xtp-jsp.xtp'>custom taglibraries</a>. Using <a href='xsl.xtp'>XSL</a>, you can createmeaningful tags for your web pages: ct:shopping-cart-summary,ct:example, ct:sql-query.</p></defun><defun name='Directives' title="Directives"><p><a href='jsp-directives.xtp'>Directives</a> control the processing ofan entire page. Directive examples include setting a scriptinglanguage, setting an error page, including other documents, andsetting a character encoding.</p></defun><defun name='Variables' title="Variables"><p>JSP makes implicit <a href='jsp-variables.xtp'>variables</a>available to the script. Scripts can use request, response, session, andapplication variables.</p></defun><defun name='Applications' title="Applications"><p><a href='jsp-applications.xtp'>Applications</a> join JSP pages,script libraries and Java beans into a self-contained webapplication. Applications are controlled by the <ahref='http-config.xtp'>configuration</a> file.</p></defun></s1>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -