Anonymous | Login | Signup for a new account | 12-17-2024 08:32 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0001858 | [Resin] | minor | always | 07-09-07 15:44 | 08-21-07 15:06 | ||||
Reporter | ferg | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 3.1.1 | ||||||
Summary | 0001858: jstl/xml issue with non-Resin xml parser | ||||||||
Description |
(rep by Bill Au) <%@ page contentType="text/html;charset=UTF-8" language="java" import="javax.xml.parsers.*, org.w3c.dom.Document, org.xml.sax.InputSource, java.net.URLEncoder, java.net.URL, java.util.*, java.io.*, java.text.* " %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" [^] %> <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" [^] %> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" [^] %> <c:set var="userId" value="333" scope="page"/> <!-- ############################################################## --> <x:parse var="working" > <users> <user id="333"> <name>bob</name> </user> <user id="444"> <name>tom</name> </user> </users> </x:parse> All 3 of these should be 'bob' ...
<!-- literal value --> <!-- page is default scope --> <!-- fully specified scope --> <!-- ############################################################## --> <hr /> <!-- ############################################################## --> <% String rawxml = "<users><user id=\"333\"><name>bob</name></user><user id=\"444\"><name>tom</name></user></users>"; DocumentBuilderFactory DOM_FACTORY = DocumentBuilderFactory.newInstance(); DocumentBuilder b = DOM_FACTORY.newDocumentBuilder(); Document domdoc = b.parse(new InputSource(new StringReader(rawxml))); if (null == domdoc) { throw new Exception("domdoc is null"); } request.setAttribute("broken",domdoc); %> All 3 of these should be 'bob' ...
<!-- literal value --> <!-- page is default scope --> <!-- fully specified scope --> |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Notes | |
(0002211) ferg 08-21-07 15:06 |
jsp/1g5a, see also 0001943 |
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |