| ||
jakartastrutsckbk-code/ch10/src/com/oreilly/strutsckbk/ch10/DigestedList.java (39 lines) 5 6 import org.apache.commons.digester.Digester; 7 import org.apache.commons.digester.xmlrules.DigesterLoader; 8 import org.apache.commons.logging.Log; 9 import org.apache.commons.logging.LogFactory; 10 11 public class DigestedList extends RefreshableList { 12 13 private static Log log = LogFactory.getLog(DigestedList.class); 14 15 public DigestedList(List list, URL sourceUrl, URL rulesUrl) { 16 this.sourceUrl = sourceUrl; 17 this.rulesUrl = rulesUrl; 18 this.backingList = list; 19 } 20 21 public synchronized void refresh() throws CacheException { 22 Digester digester = DigesterLoader.createDigester(rulesUrl); 23 try { 24 List list = (List) digester.parse(sourceUrl.openStream()); 25 if (list != null) 26 backingList = list; jakartastrutsckbk-code/ch01/r7/src/org/apache/struts/webapp/example/memory/MemoryUserDatabase.java (457 lines) 80 import org.apache.struts.webapp.example.UserDatabase; 81 import org.xml.sax.Attributes; 82 jakartastrutsckbk-code/ch02/r1/src/org/apache/struts/webapp/example/memory/MemoryUserDatabase.java (457 lines) 80 import org.apache.struts.webapp.example.UserDatabase; 81 import org.xml.sax.Attributes; 82 jakartastrutsckbk-code/ch03/src/org/apache/struts/webapp/example/memory/MemoryUserDatabase.java (457 lines) 80 import org.apache.struts.webapp.example.UserDatabase; 81 import org.xml.sax.Attributes; 82 jakartastrutsckbk-code/ch10-spring/src/org/apache/struts/webapp/example/memory/MemoryUserDatabase.java (375 lines) 39 import org.apache.struts.webapp.example.ExpiredPasswordException; 40 import org.xml.sax.Attributes; 41 | ||
| ||
src/java/com/discursive/jccook/xml/bardsearch/PlayIndexer.java (93 lines) 19 */ 20 package com.discursive.jccook.xml.bardsearch; 21Additional matches viewable in cache of src/java/com/discursive/jccook/xml/bardsearch/PlayIndexer.java. src/java/com/discursive/jccook/xml/bean/NamespaceDigest.java (87 lines) 19 */ 20 package com.discursive.jccook.xml.bean; 21Additional matches viewable in cache of src/java/com/discursive/jccook/xml/bean/NamespaceDigest.java. src/java/com/discursive/jccook/xml/bean/ProgrammaticDigesterExample.java (70 lines) 19 */ 20 package com.discursive.jccook.xml.bean; 21Additional matches viewable in cache of src/java/com/discursive/jccook/xml/bean/ProgrammaticDigesterExample.java. src/java/com/discursive/jccook/xml/bean/XMLNamespaceDigest.java (59 lines) 19 */ 20 package com.discursive.jccook.xml.bean; 21Additional matches viewable in cache of src/java/com/discursive/jccook/xml/bean/XMLNamespaceDigest.java. src/java/com/discursive/jccook/xml/bean/BetwixtExample.java (90 lines) 19 */ 20 package com.discursive.jccook.xml.bean; 21Additional matches viewable in cache of src/java/com/discursive/jccook/xml/bean/BetwixtExample.java. | ||
| ||
storefront-source/com/oreilly/struts/storefront/service/memory/StorefrontMemoryDatabase.java (280 lines) 13 import org.apache.commons.logging.LogFactory; 14 import org.xml.sax.Attributes; 15 storefront-source/org/apache/struts/webapp/example/memory/MemoryUserDatabase.java (457 lines) 80 import org.apache.struts.webapp.example.UserDatabase; 81 import org.xml.sax.Attributes; 82 | ||
| ||
src/src/com/mycompany/jsf/pl/XMLViewHandler.java (409 lines) 23 24 import org.xml.sax.Attributes; 25 import org.xml.sax.SAXException; 26 import org.xml.sax.SAXParseException; 27 import org.xml.sax.helpers.DefaultHandler; 28 import javax.xml.parsers.SAXParserFactory; 29 import javax.xml.parsers.ParserConfigurationException; 30 import javax.xml.parsers.SAXParser; 31 32 /**Additional matches viewable in cache of src/src/com/mycompany/jsf/pl/XMLViewHandler.java. | ||
| ||
ora/ch15/news.jsp (93 lines) 2 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 3 <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %> 4Additional matches viewable in cache of ora/ch15/news.jsp. ora/ch14/process_nw.jsp (22 lines) 14 15 Text string converted to a Java Unicode string: 16 ${fn:escapeXml(param.text)} 17 <p> 18 Date string converted to the internal Java Date type: 19 <fmt:parseDate value="${param.date}" dateStyle="full" /> 20 21 </body> src/src/com/ora/jsp/servlets/ResourceManagerListener2.java (55 lines) 22 23 /* 24 * Get the JDBC URL, user, password and limit from the web.xml 25 * context init parameters 26 */ 27 String jdbcURL = application.getInitParameter("jdbcURL"); 28 String user = application.getInitParameter("user"); 29 String password = application.getInitParameter("password"); 30 String maxLimit = application.getInitParameter("maxLimit"); 31 32 try { 33 ds = new OracleConnectionCacheImpl(); 34 ds.setURL(jdbcURL); 35 ds.setMaxLimit(Integer.parseInt(maxLimit)); 36 ds.setUser("scott"); 37 ds.setPassword("tiger"); | ||
| ||
jspcookbook/chap23/xmlCore.jsp (31 lines) 1 <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %> 2 <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>Additional matches viewable in cache of jspcookbook/chap23/xmlCore.jsp. jspcookbook/chap5/com/jspservletcookbook/ValidateHandler.java (52 lines) 2 3 import org.xml.sax.Attributes; 4 import org.xml.sax.SAXParseException; 5 import org.xml.sax.SAXException; 6 import org.xml.sax.helpers.DefaultHandler; 7 import javax.xml.parsers.SAXParserFactory; 8 import javax.xml.parsers.FactoryConfigurationError; 9 import javax.xml.parsers.ParserConfigurationException; 10 import javax.xml.parsers.SAXParser; 11 12 import java.io.IOException;Additional matches viewable in cache of jspcookbook/chap5/com/jspservletcookbook/ValidateHandler.java. | ||
| ||
art_emotherearth_logging/src/com/nealford/art/logging/emotherearth/controller/Welcome.java (76 lines) 21 Handler outputHandler = null; 22 try { 23 outputHandler = new FileHandler("/temp/basic_log.xml"); 24 } catch (Exception x) { 25 logger.severe("Can't create handler: "+ x.getMessage()); 26 } 27 if (outputHandler != null) 28 logger.addHandler(outputHandler); 29 String logLevel = getServletContext(). 30 getInitParameter("logLevel"); 31 if (logLevel != null) 32 logger.setLevel(Level.parse(logLevel.toUpperCase())); 33 else 34 logger.setLevel(Level.SEVERE); art_emotherearth_ws_client/src/com/nealford/art/emotherearth/ws/client/MainFrame.java (115 lines) 90 ws = new localhost.emotherearth.services.OrderStatus.OrderInfoServiceLocator(). 91 getOrderStatus(); 92 } catch (javax.xml.rpc.ServiceException jre) { 93 if (jre.getLinkedCause() != null) { 94 jre.getLinkedCause().printStackTrace(); 95 } 96 throw new RuntimeException( 97 "JAX-RPC ServiceException caught: " + jre); 98 } 99 100 try { 101 int orderNo = 102 Integer.parseInt(jTextField1.getText()); 103 ws.getShippingStatus(orderNo); 104 lblOrderStatus.setText(ws.getOrderStatus(orderNo)); | ||
| ||
jstlsample/web/xparse.jsp (12 lines) 1 <%@ include file="/globals.jsp" %> 2 <b>Parsing XML provided in the body content of x:parse</b> 3 <br> 4 <x:parse var="doc">Additional matches viewable in cache of jstlsample/web/xparse.jsp. jstlsample/web/xparseimport.jsp (7 lines) 1 <%@ include file="/globals.jsp" %> 2 <b>Parsing XML provided from an imported variable</b> 3 <br> 4 <c:import var="xmlfile" url="/people.xml" /> 5 <x:parse var="doc" xml="${xmlfile}" /> 6 Hello <x:out select="$doc/person/firstname" /> 7 jstlsample/web/cimportvar.jsp (15 lines) 5 </c:import> 6 <c:out value="${commonHeader}" escapeXml="false" /> 7 8 <c:import url="/authors.xml" varReader="reader"> 9 <x:parse xml="${reader}" var="doc"/> 10 </c:import> 11 The author's name is: <x:out select="$doc/authors/author/name"/> jstlsample/web/jstlbook.jsp (400 lines) 41 - uses configuration settings 42 from the web.xml to set the datasource. </p> 43 <p><a href="cleandatabase.jsp">cleandatabase.jsp</a>Additional matches viewable in cache of jstlsample/web/jstlbook.jsp. jstlsample/web/xconditionals.jsp (38 lines) 4 <title> 5 <c:out value="Conditional XML Samples" escapeXml="false"/> 6 </title>Additional matches viewable in cache of jstlsample/web/xconditionals.jsp. | ||
| ||
Wrox Beginning JSP Code/Chapter 14/XML/parseXML.jsp (35 lines) 4 <head> 5 <title>JSTL XML Support -- Parsing</title> 6 </head> 7 <body bgcolor="#FFFFFF"> 8 <h3>Parsing an XML Document using XML tags</h3> 9 10 <x:parse> 11 <BOOK> 12 <AUTHOR>Additional matches viewable in cache of Wrox Beginning JSP Code/Chapter 14/XML/parseXML.jsp. Wrox Beginning JSP Code/Chapter 14/XML/iterate.jsp (42 lines) 5 <head> 6 <title>JSTL XML Support -- Flow Control</title> 7 </head> 8 <body bgcolor="#FFFFFF"> 9 <h3>Iterating through an XML document</h3> 10 11 <x:parse> 12 <items> 13 <item>Additional matches viewable in cache of Wrox Beginning JSP Code/Chapter 14/XML/iterate.jsp. | ||
| ||
webapps/ROOT/example/ch8/core/parse.jsp (102 lines) 1 <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> 2 <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %> 3 <html> 4 <head> 5 <title>Parse Examples</title> 6 </head> 7 8 <body>Please enter an XML file: 9 <br /> 10Additional matches viewable in cache of webapps/ROOT/example/ch8/core/parse.jsp. webapps/ROOT/example/ch8/core/out.jsp (41 lines) 1 <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %><%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %> 2 <html> webapps/ROOT/example/ch8/core/set.jsp (47 lines) 1 <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> 2 <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %> 3 <html> webapps/ROOT/example/ch8/flow/choose.jsp (65 lines) 1 <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %><%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %> 2 <html> webapps/ROOT/example/ch8/flow/foreach.jsp (45 lines) 1 <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %><%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %> 2 <html> | ||
| ||
chapter08/rss.jsp (16 lines) 1 <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> 2 <%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml" %> 3 4 <c:import var="xml" url="${param.rssUrl}"/> 5 <x:parse var="rss" xml="${xml}" /> 6 7 <ul> chapter08/rssFollow.jsp (20 lines) 1 <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> 2 <%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml" %> 3 4 <c:import var="xml" url="${param.rssUrl}"/> 5 <x:parse var="rss" xml="${xml}" /> 6 7 <ul> chapter08/simpleRss.jsp (16 lines) 1 <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> 2 <%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml" %> 3 4 <c:import var="xml" url="${param.rssUrl}" /> 5 <x:parse var="rss" xml="${xml}" /> 6 7 <ul> chapter13/rss.jsp (16 lines) 1 <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> 2 <%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml" %> 3 4 <c:import var="xml" url="${param.rssUrl}" /> 5 <x:parse var="rss" xml="${xml}" /> 6 7 <ul> | ||
| ||
WEB-INF/classes/ProcessXML.java (108 lines) 2 import javax.servlet.*; 3 import javax.servlet.http.*; 4 import javax.xml.parsers.*; 5 import javax.xml.transform.*; 6 import javax.xml.transform.stream.*;Additional matches viewable in cache of WEB-INF/classes/ProcessXML.java. WEB-INF/classes/xmlbook/chapter10/DetermineStyleSheet.java (23 lines) 1 package xmlbook.chapter10; 2Additional matches viewable in cache of WEB-INF/classes/xmlbook/chapter10/DetermineStyleSheet.java. chapter6/XMLTable.jsp (39 lines) 1 <%@ page 2 import="org.xml.sax.helpers.*, 3 org.xml.sax.*, 4 javax.xml.parsers.*, 5 xmlbook.chapter6.*" 6 %>Additional matches viewable in cache of chapter6/XMLTable.jsp. chapter13/ClientScript.jsp (171 lines) 3 org.jdom.output.*, 4 javax.xml.transform.*, 5 xmlbook.chapter11.*" %>Additional matches viewable in cache of chapter13/ClientScript.jsp. chapter4/BannerAds_Param.jsp (38 lines) 1 <%@ page 2 import="javax.xml.transform.*, 3 javax.xml.transform.stream.*, 4 java.io.*, 5 javax.xml.parsers.*, 6 org.w3c.dom.*" 7 %>Additional matches viewable in cache of chapter4/BannerAds_Param.jsp. | ||
| ||
webdev/src/com/taglib/wdjsp/mut/CopyingTLV.java (52 lines) 14 public class CopyingTLV extends TagLibraryValidator { 15 16 private static String DEST_FILE = "/Users/mark/tmp/ParsedPage.xml"; 17 18 public ValidationMessage[] validate (String prefix, String uri, webdev/src/com/taglib/wdjsp/mut/NestingTLV.java (109 lines) 4 import javax.servlet.jsp.tagext.ValidationMessage; 5 import javax.servlet.jsp.tagext.PageData; 6 import javax.xml.parsers.DocumentBuilder; 7 import javax.xml.parsers.DocumentBuilderFactory; 8 import org.w3c.dom.Document; 9 import org.w3c.dom.Node;Additional matches viewable in cache of webdev/src/com/taglib/wdjsp/mut/NestingTLV.java. webdev/src/com/taglib/wdjsp/mut/ScriptFreeTLV.java (167 lines) 4 import javax.servlet.jsp.tagext.ValidationMessage; 5 import javax.servlet.jsp.tagext.PageData; 6 import javax.xml.parsers.SAXParserFactory; 7 import javax.xml.parsers.SAXParser; 8 import org.xml.sax.Attributes; 9 import org.xml.sax.helpers.DefaultHandler;Additional matches viewable in cache of webdev/src/com/taglib/wdjsp/mut/ScriptFreeTLV.java. | ||