jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rlu...@apache.org
Subject cvs commit: jakarta-watchdog-4.0/src/tools/org/apache/watchdog/jspxml jsp2XML.java
Date Thu, 27 Jun 2002 16:07:36 GMT
rlubke      2002/06/27 09:07:36

  Modified:    src/tools/org/apache/watchdog/jspxml jsp2XML.java
  Log:
  This fixes an issue brought up on the watchdog-dev alias.
  The XML jsp generator was not creating compliant XML JSP
  pages when the URI of the taglib was relative by prefixing
  the uri with urn:jstltld:, i.e
  
     xmlns:test="/tomcat/taglib"
  
      should be
  
     xmlns:test="urn:jsptld:/tomcat/tablib"
  
  Revision  Changes    Path
  1.2       +7 -3      jakarta-watchdog-4.0/src/tools/org/apache/watchdog/jspxml/jsp2XML.java
  
  Index: jsp2XML.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/tools/org/apache/watchdog/jspxml/jsp2XML.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- jsp2XML.java	2 Feb 2002 03:21:25 -0000	1.1
  +++ jsp2XML.java	27 Jun 2002 16:07:36 -0000	1.2
  @@ -154,6 +154,10 @@
   
           if (!tag_prefix.containsKey(prefix)) {
               tag_prefix.put(prefix , prefix);
  +            if (uri.charAt(0) == '/') {
  +                // URI is relaitve
  +                uri = "urn:jsptld:" + uri;
  +            }
               //add to the xml NameSpace
               xml_ns += "xmlns:" + prefix + "=\"" + uri + "\"" + new_line;
           }
  
  
  

--
To unsubscribe, e-mail:   <mailto:watchdog-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:watchdog-dev-help@jakarta.apache.org>


Mime
View raw message