⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 webapp-tags.xtp

📁 RESIN 3.2 最新源码
💻 XTP
📖 第 1 页 / 共 5 页
字号:
<tr>  <td>validate-taglib-schema</td>  <td>if true, validate .tld files against the .tld schema.  Set to false tohandle invalid .tld files</td>  <td>true</td></tr><tr>  <td>velocity-enabled</td>  <td>if true, velocity-style tags are allowed</td>  <td>false</td></tr></deftable-childtags><def title="&lt;jsp> schema">element jsp {  auto-compile  &amp; deferred-syntax-allowed-as-literal?  &amp; dependency-check-interval?  &amp; el-ignored?  &amp; fast-jstl?  &amp; ide-hack?  &amp; ignore-el-exception?  &amp; is-xml?  &amp; page-encoding?  &amp; precompile?  &amp; print-null-as-blank?  &amp; recompile-on-error?  &amp; recycle-tags?  &amp; require-source?  &amp; scripting-invalid?  &amp; session?  &amp; static-page-generates-class?  &amp; tld-dir?  &amp; tld-file-set?  &amp; trim-directive-whitespaces?  &amp; validate-taglib-schema?  &amp; velocity-enabled?}</def></defun><defun title="&lt;jsp-config>" version="Servlet"><p>&lt;jsp-config> configure standard settings for JSP files.</p><deftable title="&lt;jsp-config> Attributes"><tr>  <th>Attribute</th>  <th>Description</th>  <th>Default</th></tr><tr>  <td>url-pattern</td>  <td>selects the URLs which this jsp-config applies to</td>  <td></td></tr><tr>  <td>el-ignored</td>  <td>If true, EL expressions are ignored</td>  <td>false</td></tr><tr>  <td>page-encoding</td>  <td>Defines the default page encoding for the JSP file</td>  <td>ISO-8859-1</td></tr><tr>  <td>scripting-invalid</td>  <td>If true, Java scripting is forbidded in the JSP page</td>  <td>false</td></tr><tr>  <td>trim-directive-whitespaces</td>  <td>If true, extra whitespace is trimmed around JSP directives</td>  <td>false</td></tr><tr>  <td>is-xml</td>  <td>If true, for XML syntax for JSP pages</td>  <td>false</td></tr><tr>  <td>include-prelude</td>  <td>Includes JSP fragments before the JSP page as headers</td>  <td></td></tr><tr>  <td>include-coda</td>  <td>Includes JSP fragments before the JSP page as footers</td>  <td></td></tr></deftable><def title="&lt;jsp-config> schema">element jsp-config {  taglib*,  jsp-property-group*}element jsp-property-group {  url-pattern*,  deferred-syntax-allowed-as-literal?,  el-ignored?,  page-encoding?  scripting-invalid?  trim-directive-whitespaces?  is-xml?  include-prelude*  include-coda*}</def></defun><defun title="&lt;lazy-servlet-validate>"><default>false</default><p>&lt;lazy-servlet-validate> defers validation of servlet classesuntil the servlet is used.  Some servlet libraries are bundled withweb.xml files which include servlets with no available classes.Since Resin will normally send an error in thissituation, &lt;lazy-servlet-validate> lets you turn the validation off.</p><def title="&lt;lazy-servlet-validate> schema">element lazy-servlet-validate {  r_boolean-Type}</def></defun><defun title="&lt;listener>" version="Servlet"><p>&lt;listener> configures servlet event listeners.  The listenersare registered based on interfaces they implement.  The listenerinstances are fully <a href="resin-ioc.xtp">Resin-IoC</a> aware,including dependency injection, observing events, and supporting aspects.</p><deftable title="&lt;listener> Attributes"><tr>  <th>Attribute</th>  <th>Description</th></tr><tr>  <td>listener-class</td>  <td>classname of the listener implementation</td></tr><tr>  <td>init</td>  <td>IoC initialization of the listener</td></tr></deftable><deftable title="listener interfaces"><tr>  <th>Interface</th>  <th>Description</th></tr><tr>  <td><a href="http://caucho.com/resin-javadoc/javax/servlet/ServletContextListener.html">javax.servlet.ServletContextListener</a></td>  <td>Called when the web-app starts and stops</td></tr><tr>  <td><a href="http://caucho.com/resin-javadoc/javax/servlet/ServletContextAttributeListener.html">javax.servlet.ServletContextAttributeListener</a></td>  <td>Called when the web-app attributes change</td></tr><tr>  <td><a href="http://caucho.com/resin-javadoc/javax/servlet/ServletRequestListener.html">javax.servlet.ServletRequestListener</a></td>  <td>Called when the request starts and stops</td></tr><tr>  <td><a href="http://caucho.com/resin-javadoc/javax/servlet/ServletRequestAttributeListener.html">javax.servlet.ServletRequestAttributeListener</a></td>  <td>Called when request attributes change</td></tr><tr>  <td><a href="http://caucho.com/resin-javadoc/javax/servlet/http/HttpSessionListener.html">javax.servlet.http.HttpSessionListener</a></td>  <td>Called when HTTP sessions start or stop</td></tr><tr>  <td><a href="http://caucho.com/resin-javadoc/javax/servlet/http/HttpSessionAttributeListener.html">javax.servlet.http.HttpSessionAttributeListener</a></td>  <td>Called when HTTP sessions attributes change</td></tr><tr>  <td><a href="http://caucho.com/resin-javadoc/javax/servlet/http/HttpSessionActivationListener.html">javax.servlet.http.HttpSessionActivationListener</a></td>  <td>Called when HTTP sessions passivate or activate</td></tr></deftable><def title="&lt;listener> schema">element listener {  listener-class,  init?}</def></defun><defun title="&lt;login-config>" version="Servlet 2.2"><parents>web-app</parents><default>no authentication</default><p>Configures the login method for authentication, one of BASIC,DIGEST or FORM.</p><p>See also: <a href="resin-security.xtp">Resin security</a> for anoverview.</p><deftable-childtags title="&lt;login-config> Attributes"><tr>  <th>Attribute</th>  <th>Description</th></tr><tr>  <td>auth-method</td>  <td>Authentication method, either <var>BASIC</var> for HTTP Basic Authentication, <var>FORM</var> for form based authentication, or <var>DIGEST</var> for HTTP <a href="security-digest.xtp">Digest Authentication</a>.</td></tr><tr>  <td>authenticator</td>  <td>Specifies the authenticator to use to lookup users and passwords.</td></tr><tr>  <td>class</td>  <td>Defines a custom class which extends <a href="http://caucho.com/resin-javadoc/com/caucho/server/security/AbstractLogin.html">com.caucho.server.security.AbstractLogin</a></td></tr><tr>  <td>form-login-config</td>  <td>Configuration for form login.</td></tr><tr>  <td>init</td>  <td>Initialization for the custom login class</td></tr><tr>  <td>realm-name</td>  <td>The realm name to use in HTTP authentication</td></tr></deftable-childtags><p>HTTP Authentication is defined in the RFC <a href="http://www.faqs.org/rfcs/rfc2617.html">HTTP Authentication: Basic andDigest</a>.</p> <p>HTTP digest authentication is discussed in <a href="security-digest.xtp">Digest Passwords</a>.</p><def title="&lt;login-config> schema">element login-config {  class?  &amp; auth-method?  &amp; authenticator?  &amp; form-login-config?  &amp; init?  &amp; realm-name?</def></defun><defun title="&lt;mime-mapping>" version="Servlet 2.2"><parents>web-app</parents><p>Maps url patterns to mime-types.</p><deftable-childtags title="&lt;mime-mapping> attributes"><tr>  <th>Attribute</th>  <th>Description</th></tr><tr>  <td>extension</td>  <td>url extension</td></tr><tr>  <td>mime-type</td>  <td>the mime-type</td></tr></deftable-childtags><def title="&lt;mime-mapping> schema">element mime-mapping {  extension,  mime-type}</def><example title="Example: WEB-INF/resin-web.xml">&lt;web-app xmlns="http://caucho.com/ns/resin">  &lt;mime-mapping&gt;    &lt;extension&gt;.foo&lt;/extension&gt;    &lt;mime-type&gt;text/html&lt;/mime-type&gt;  &lt;/mime-mapping&gt;  &lt;!-- resin shortcut syntax --&gt;  &lt;mime-mapping extension='.bar'                mime-type='text/html'/&gt;&lt;/web-app&gt;</example><p>Resin has a long list of default mime types in <var>$RESIN_HOME/conf/app-default.xml</var></p></defun><defun title="&lt;multipart-form>" version="Resin 1.2"><parents>web-app</parents><p>Enables multipart-mime for forms and file uploads.  multipart-mimeis disabled by default.</p><p>For an uploaded file with a form name of <var>foo</var>, the parametervalue contains the path name to a temporary file containing the uploadedfile.  <var>foo.filename</var> contains the uploaded filename, and<var>foo.content-type</var> contains the content-type of the uploaded file.</p><deftable title="&lt;multipart-form> Attributes"><tr>  <th>Attribute</th>  <th>Description</th>  <th>Default</th></tr><tr>  <td>upload-max</td>  <td>maximum size of an upload request (in kb).</td>  <td>no limit</td></tr></deftable><p>If the upload is larger than the limit or if multipart-form processingis disabled, Resin will not parse the request and will set an error messagein the "<var>caucho.multipart.form.error</var>" request attribute.The "<var>caucho.multipart.form.error.size</var>" will contain the attempted upload size.</p><p>Requests can set the maximum by setting the request attribute"<var>caucho.multipart.form.upload-max</var>" with an Integer or Long value.</p><p>By default, multipart-form is disabled.</p><def title="&lt;multipart-form> schema">element multipart-form {  enable?  &amp; upload-max?}</def></defun><defun title="&lt;path-mapping>"><parents>web-app</parents><p>Maps url patterns to real paths.  If using a server likeIIS, you may need to match the server's path aliases.</p><deftable title="&lt;path-mapping> Attributes"><tr>  <th>Attribute</th>  <th>Description</th></tr><tr>  <td>url-pattern</td>  <td>A pattern matching the url: <var>/foo/*</var>, <var>/foo</var>, or <var>*.foo</var></td></tr><tr>  <td>url-regexp</td>  <td>A regular expression matching the portion of the url that follows the <g>context path</g></td></tr><tr>  <td>real-path</td>  <td>The prefix of the real path.  When used with <var>url-regexp</var>, allows substitution variables like <var>$1</var>.</td></tr></deftable><def title="&lt;path-mapping> schema">element path-mapping {  (url-pattern | url-regexp)  &amp; real-path}</def><example title="Example: resin-web.xml aliasing paths">&lt;web-app xmlns="http://caucho.com/ns/resin">&lt;path-mapping url-pattern='/resin/*'              real-path='e:\resin'/&gt;&lt;path-mapping url-regexp='/~([^/]*)'              real-path='e:\home\$1'/&gt;&lt;/web-app&gt;</example></defun><defun title="&lt;protocol>"><parents>servlet, servlet-mapping</parents><p>&lt;protocol> configures a <a href="resin-remoting.xtp">remoting</a>protocol for a Java bean.  The bean is configured with the &lt;servlet>and &lt;servlet-mapping> tags, since it will process HTTP URL requests.</p><p>Protocol drivers extend the <a href="http://caucho.com/resin-javadoc/com/caucho/remote/server/AbstractProtocolServletFactory.html">AbstractProtocolServletFactory</a> interface and can register a URI alias to simplify configuration.</p><deftable title="&lt;protocol> Attributes"><tr>  <th>Attribute</th>  <th>Description</th></tr><tr>  <td>class</td>  <td>Classname of the protocol driver implementing ProtocolServletFactory</td></tr><tr>  <td>init</td>  <td>Optional IoC initialization for the protocol driver</td></tr><tr>  <td>uri</td>  <td>Protocol configuration shortcut</td></tr></deftable><deftable title="Current drivers"><tr>  <th>URI scheme</th>  <th>Description</th></tr><tr>  <td>burlap:</td>  <td>The burlap XML protocol</td></tr><tr>  <td>cxf:</td>  <td>The CXF SOAP implementation</td></tr><tr>  <td>hessian:</td>  <td>The Hessian protocol</td></tr><tr>  <td>xfire:</td>  <td>The XFire SOAP implementation</td></tr></deftable><def title="&lt;protocol> schema">element protocol {  (class | uri)  &amp; init?}</def><example title="Example: Hessian service in resin-web.xml">&lt;web-app xmlns="http://caucho.com/ns/resin">  &lt;servlet-mapping url-pattern="/hello">                    servlet-class="example.MyHello">    &lt;protocol uri="hessian:"/>  &lt;/servlet-mapping>&lt;/web-app></example></defun><defun title="&lt;redeploy-check-interval>"><parents>web-app</parents><default>60s</default><p>&lt;redeploy-check-interval> specifies how often Resin shouldcheck if a .war file has been updated or added to a&lt;web-app-deploy> directory.</p><def title="&lt;redeploy-check-interval> schema">element redeploy-check-interval {  r_period-Type}</def></defun><defun title="&lt;redeploy-mode>"><parents>web-app</parents><default>automatic</default><p>&lt;redeploy-mode> specifies how Resin handles updates toweb-apps and .war files.  By default, Resin restarts web-apps whenclasses or configuration files change.</p><deftable><tr>  <th>Mode</th>  <th>Description</th></tr><tr>  <td>automatic</td>  <td>checks for redeployment and auto-redeploy if modified </td></tr><tr>  <td>manual</td>  <td>does not check for redeployment.  Only checks if manual (JMX) </td></tr></deftable><def title="&lt;redeploy-check-interval> schema">element redeploy-mode {

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -