Package com.caucho.jsp

Examples of com.caucho.jsp.ParseState


    if (_file == null)
      throw error(L.l("<{0}> needs a 'file' attribute.",
                      getTagName()));

    try {
      ParseState parseState = _gen.getParseState();
     
      if (parseState.isXml()) {
        Xml xml = new Xml();
        xml.setContentHandler(new JspContentHandler(parseState.getBuilder()));
        Path path = resolvePath(_file, parseState);

        path.setUserPath(_file);
        xml.setNamespaceAware(true);

        for (Namespace ns = parseState.getNamespaces();
             ns != null;
             ns = ns.getNext()) {
          xml.pushNamespace(ns.getPrefix(), ns.getURI());
        }
View Full Code Here


    if (_file == null)
      throw error(L.l("<{0}> needs a 'file' attribute.",
                      getTagName()));

    try {
      ParseState parseState = _gen.getParseState();
     
      if (parseState.isXml()) {
  Xml xml = new Xml();
  xml.setContentHandler(new JspContentHandler(parseState.getBuilder()));
  Path path = resolvePath(_file, parseState);
 
  path.setUserPath(_file);
  xml.setNamespaceAware(true);

  for (Namespace ns = parseState.getNamespaces();
       ns != null;
       ns = ns.getNext()) {
    xml.pushNamespace(ns.getPrefix(), ns.getURI());
  }
 
View Full Code Here

TOP

Related Classes of com.caucho.jsp.ParseState

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.