jsp.xtp

来自「解压在c盘」· XTP 代码 · 共 77 行

XTP
77
字号
<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/&lt;%@ page language=javascript %&gt;&lt;% var title='Counter' %&gt;/>&lt;html&gt;&lt;head&gt;&lt;title&gt;<var/&lt;%= title %&gt;/>&lt;/title>&lt;/head&gt;&lt;body bgcolor='white'&gt;<var/&lt;jsp:useBean id='counter' class='Counter' scope='application'/&gt;/>&lt;h1&gt;<var/&lt;%= title %&gt;/>&lt;/h1&gt;Welcome, visitor <var/&lt;%= counter.hit %&gt;/>!&lt;/body&gt;&lt;/html&gt;</example><p>JSP supports an equivalent XML syntax.  The XML has the benefit ofconsistency with the price of some extra verbosity.</p><example><var>&lt;jsp:directive.page language=javascript/&gt;&lt;jsp:scriptlet>var title='Counter' %&lt;/jsp:scriptlet></var>&lt;html&gt;&lt;head&gt;&lt;title&gt;<var>&lt;jsp:expression>title&lt;/jsp:expression></var>&lt;/head&gt;&lt;body bgcolor='white'&gt;<var/&lt;jsp:useBean id='counter' class='Counter' scope='application'/&gt;/>&lt;h1&gt;<var>&lt;jsp:expression> title &lt;/jsp:expression></var>&lt;/h1&gt;Welcome, visitor <var>&lt;jsp:expression> counter.hit&lt;/jsp:expression></var>!&lt;/body&gt;&lt;/html&gt;</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 + =
减小字号Ctrl + -
显示快捷键?