Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
1858 | minor | always | 07-09-07 15:44 | 08-21-07 15:06 | |
|
|||||
Reporter: | ferg | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.1.1 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.1.3 | ||
|
|||||
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 --> |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|