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

📄 cocoon.pr

📁 java操作xml文件的各种代码
💻 PR
📖 第 1 页 / 共 2 页
字号:
###############################################################################                          Cocoon Configuration file                         ################################################################################################################################################################## IMPORTANT - YOU MUST RESTART YOUR SERVLET ENGINE WHENEVER YOU CHANGE THIS FILE ##                                                                                ##  This is a limitation which is fixed in Cocoon 2.                              ############################################################################################################################## Global Configurations                  ############################################ Indicates whether or not Cocoon should be visible if# the requested URI equals the specified one.selfservlet.enabled = trueselfservlet.uri = /Cocoon.xml# Indicates whether or not Cocoon should handle errors internally# and format the error and the exception stack trace to the client# or return the HTTP error code to the web server and let it handle it.handle.errors.internally = true# Indicates the log severity level#log.level = emergency#log.level = criticallog.level = error#log.level = warning#log.level = info#log.level = debug########################################### XML Parsers                            ############################################ Apache Xerces 1.0.1+ (http://xml.apache.com/)parser = org.apache.cocoon.parser.XercesParser# SUN ProjectX TR2 (http://java.sun.com/xml/)#parser = org.apache.cocoon.parser.SunXMLParser# Indicate whether the XML file should be validated or not# this is turned off by default for faster operation.parser.validate = false########################################### XSLT Transformers                      ############################################ Apache Xalan (http://xml.apache.org/)transformer = org.apache.cocoon.transformer.XalanTransformer# James Clark's XT (http://www.jclark.com/)#transformer = org.apache.cocoon.transformer.XTTransformer########################################### XML Producers                          ############################################ For example, if you want to produce your XML template reading it from# the file system, using your producer, you should request the URI:#   http://your.site.com/your_XML_file.xml?producer=file# This is the request parameter used to identify the producer in the request:# (default value is "producer")producer.parameter = producer# The syntax for this is#   producer.type.xxx = full.class.name# where "xxx" is the producer indentier used in the requestproducer.type.file = org.apache.cocoon.producer.ProducerFromFileproducer.type.db = com.keyhold.xml.ProducerFromDB# This is used in the example filesproducer.type.dummy = org.apache.cocoon.example.DummyProducer# When producer indication is present in the request# this configuration allows to map those requests to a particular# producer indicated here with its type.# NOTE: this type must present in the above map.producer.default = file########################################### XML Processors                         ############################################ These are used when the <?cocoon-process type="xxx"?> PI is present.# If no PI of that type is present, no processing is performed.# The syntax for this is#   processor.type.xxx = full.class.name# XSL Transformations (XSLT)processor.type.xslt = org.apache.cocoon.processor.xslt.XSLTProcessor# SQL Processorprocessor.type.sql = org.apache.cocoon.processor.sql.SQLProcessor# LDAP Processor# NOTE: you need to have the SUN JDNI API (jndi.jar) in your classpath# in order for this processor to work. Check the FAQ for more information.#processor.type.ldap = org.apache.cocoon.processor.ldap.LdapProcessor# XInclude Processorprocessor.type.xinclude = org.apache.cocoon.processor.xinclude.XIncludeProcessor# Link Encoding Processor which encodes all links using response.encodeUrl()processor.type.linkencode = org.apache.cocoon.processor.LinkEncodingProcessor########################################### XSP Processor                          ############################################ eXtensible Server Pages Processor (XSP)processor.type.xsp = org.apache.cocoon.processor.xsp.XSPProcessor# supported languagesprocessor.xsp.languages = java# Default encoding to be used for code generation and compilation# If omitted, the platform's default encoding will be used# This encoding should also be used in:#   - The XSP document <?xml?> declaration#   - The "encoding" configuration property of the formatter to be used# Example: Russian uses "Cp1251"# processor.xsp.encoding = Cp1251# support for the java languageprocessor.xsp.java.processor = org.apache.cocoon.processor.xsp.language.java.XSPJavaProcessorprocessor.xsp.java.processor.compiler = org.apache.cocoon.processor.xsp.language.java.SunJavaCompiler# NOTE: If you enable the Jikes compiler, you must put rt.jar (for JDK >1.1) or classes.zip (for JDK 1.1)# on your CLASSPATH#processor.xsp.java.processor.compiler = org.apache.cocoon.processor.xsp.language.java.JikesJavaCompilerprocessor.xsp.java.logicsheet = xsp-java.xslprocessor.xsp.java.preprocessor = org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor# sets the repository where the compiled pages are stored.# NOTE: make sure the directory is readable. This directory is usually# relative to the web server's or to the servlet engine's. In case you're not# sure, use an absolute location.# WARNING: since this repository may contain information you want to remain# secret, we highly suggest that you protect the repository from untrusted# access, even read-only. Only Cocoon and the system administrators should# have access here.processor.xsp.repository = ./repository# Set the libraries associated with the given namespace.# Use the syntax:#   processor.xsp.logicsheet.<namespace-tag>.<language> = URL to file# where "URL to file" is usually starting with file:// if you locate# your custom library in your file system.processor.xsp.logicsheet.context.java  = resource://org/apache/cocoon/processor/xsp/library/java/context.xslprocessor.xsp.logicsheet.cookie.java   = resource://org/apache/cocoon/processor/xsp/library/java/cookie.xslprocessor.xsp.logicsheet.global.java   = resource://org/apache/cocoon/processor/xsp/library/java/global.xslprocessor.xsp.logicsheet.request.java  = resource://org/apache/cocoon/processor/xsp/library/java/request.xslprocessor.xsp.logicsheet.response.java = resource://org/apache/cocoon/processor/xsp/library/java/response.xslprocessor.xsp.logicsheet.session.java  = resource://org/apache/cocoon/processor/xsp/library/java/session.xslprocessor.xsp.logicsheet.util.java     = resource://org/apache/cocoon/processor/xsp/library/java/util.xslprocessor.xsp.logicsheet.sql.java      = resource://org/apache/cocoon/processor/xsp/library/sql/sql.xslprocessor.xsp.logicsheet.esql.java      = resource://org/apache/cocoon/processor/xsp/library/sql/esql.xslprocessor.xsp.logicsheet.fp.java       = resource://org/apache/cocoon/processor/xsp/library/fp/fp.xsl# Turbine DB Connection Pool############################# These are your database settings, look in the# org.apache.turbine.util.db.pool.* package for more information.processor.xsp.pool.database.default.driver=oracle.jdbc.driver.OracleDriverprocessor.xsp.pool.database.default.url=jdbc:oracle:thin:@localhost:1521:ORCLprocessor.xsp.pool.database.default.username=dbUserprocessor.xsp.pool.database.default.password=dbPassprocessor.xsp.pool.database.default.maxConnections=3processor.xsp.pool.database.default.expiryTime=3600000# These are the supported jdbc-drivers and their adaptors.# These properties are used by the DBFactory.processor.xsp.pool.database.adaptor=DBWeblogic,DBOracle,DBInstantDB,DBPostgres,DBSybase,DBInformix,DBMySQLprocessor.xsp.pool.database.adaptor.DBWeblogic=weblogic.jdbc.pool.Driverprocessor.xsp.pool.database.adaptor.DBOracle=oracle.jdbc.driver.OracleDriverprocessor.xsp.pool.database.adaptor.DBInstantDB=org.enhydra.instantdb.jdbc.idbDriverprocessor.xsp.pool.database.adaptor.DBPostgres=postgresql.Driverprocessor.xsp.pool.database.adaptor.DBInformix=com.informix.jdbc.IfxDriverprocessor.xsp.pool.database.adaptor.DBSybase=com.sybase.jdbc.SybDriverprocessor.xsp.pool.database.adaptor.DBMySQL=org.gjt.mm.mysql.Driver# The full path name to a pool log file# if not given, commands to log events using org.apache.turbine.util.Log will be ignored.# This file must already exist and be writable.# Default: none#processor.xsp.pool.logfile=/opt/apache/var/log/dbPool.log

⌨️ 快捷键说明

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