jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rame...@locus.apache.org
Subject cvs commit: jakarta-watchdog-4.0/src/tools/org/apache/jspxml jsp2XML.java
Date Sat, 16 Dec 2000 01:00:23 GMT
rameshm     00/12/15 17:00:23

  Modified:    src/tools/org/apache/jspxml jsp2XML.java
  Log:
      Modified to fully support custom actions. Fixed all the known bugs.
      -Ramesh.Mandava
  
  Revision  Changes    Path
  1.7       +4 -4      jakarta-watchdog-4.0/src/tools/org/apache/jspxml/jsp2XML.java
  
  Index: jsp2XML.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog-4.0/src/tools/org/apache/jspxml/jsp2XML.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- jsp2XML.java	2000/12/16 00:23:33	1.6
  +++ jsp2XML.java	2000/12/16 01:00:23	1.7
  @@ -32,7 +32,7 @@
   xml_prolog+="\"http://java.sun.com/products/jsp/dtd/jspcore_1_2.dtd\" > " ;
   
   author_comments = new_line + "<!-- This File is generated automatically by jsp2XML converter
tool --> " + new_line ;
  -author_comments+= "<!-- Written By Santosh Singh/Ramesh Mandava -->" ;
  +author_comments+= "<!-- Written By Ramesh Mandava/Santosh Singh -->" ;
   
   jsp_root_tag = new_line + "<jsp:root" + new_line ;
   //note that we haven't yet closed the jsp:root since taglib directives will also be added
here
  @@ -276,7 +276,7 @@
   	xml+=new_line+ "<jsp:cdata><![CDATA[" ;
         if ( action_index > last_index )
         {
  -            xml+=jsp.substring(last_index , action_index-1);
  +            xml+=jsp.substring(last_index , action_index); // Include even newline 
         }
   	//xml+=new_line+"]]></jsp:cdata>" +new_line ; //end of CDATA
   	xml+= "]]></jsp:cdata>" +new_line ; //end of CDATA
  @@ -286,7 +286,7 @@
         */
         end_index=jsp.indexOf( ">" , action_index);
         // Ramesh: need to have < included 
  -      xml+=jsp.substring(action_index -1 , end_index+1);
  +      xml+=jsp.substring(action_index  , end_index+1);
         //xml+=jsp.substring(action_index , end_index+1);
         last_index=end_index+1;
         continue;
  @@ -317,7 +317,7 @@
   	xml+=new_line+ "<jsp:cdata><![CDATA[" ;
         if ( action_index > last_index )
         {
  -            xml+=jsp.substring(last_index , action_index-1);
  +            xml+=jsp.substring(last_index , action_index); // including new_line
         }
   	//xml+=new_line+"]]></jsp:cdata>" +new_line ; //end of CDATA
   	xml+= "]]></jsp:cdata>" +new_line ; //end of CDATA
  
  
  

Mime
View raw message