I think its asking for a document header and DTD specification.  Problem is 
there is no parent XML element (<web-app>) enclosing multiple XML elements 
(<servlet> and servlet-mapping>).  So that won't work.   What if you just 
programmatically merge them into your web.xml?  It sounds like you know 
where the insertion point is.  If another code module is generating the 
web.xml, use a marker that isn't valid XML like <<jsp_mapping.here>>.

Fred.

At 09:59 AM 7/1/2002, you wrote:

>I checked out the website module to see if I could fix the build.xml to 
>precompile all the JSP pages.....
>
>I'm nearly there, but my XML skills are letting me down...
>
>I can get Jasper to compile all the JSPs into Java
>I can compile these into classes.
>
>The problem then is that Jasper helpfully generates me an xml snippet 
>containing some <servlet/> and <servlet-mapping/> directives. This needs 
>to be inserted into the web.xml at the correct place. Jasper is then 
>effectively removed from the equation as all mappings are directed 
>straight to precompiled java servlets, instead of through Jasper.
>
>I am trying something like:
>
><!DOCTYPE name [<!ENTITY jsp_mappings SYSTEM "jsp_mappings.xml">]>
>
>at the top of the web.xml amd then :
>
>&jsp_mappings;
>
>where I want the snippet inserted... (jsp_mappings.xml is in WEB-INF with 
>web.xml)
>
>No dice :
>
>14:28:44,992 ERROR [XmlFileLoader] Relative URI "jsp_mappings.xml"; can 
>not be resolved without a document URI.:-1:2
>org.xml.sax.SAXParseException: Relative URI "jsp_mappings.xml"; can not be 
>resolved without a document URI.
>         at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3108)
>         at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3102)
>         at........
>
>Does this mean that I need to have some sort of custom resolver registered ?
>
>All I want to do is #include a piece of xml into an xml file - is there a 
>better way....
>
>Thanks all,
>
>
>Jules
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>Jboss-development mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-development



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to