tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu...@apache.org
Subject cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler PageDataImpl.java
Date Wed, 16 Oct 2002 23:53:02 GMT
luehe       2002/10/16 16:53:02

  Modified:    jasper2/src/share/org/apache/jasper/compiler
                        PageDataImpl.java
  Log:
  Fixed 4764157: <jsp:text> elements in the XML view of a JSP page
  contain no jsp:id attribute
  
  Revision  Changes    Path
  1.9       +11 -4     jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/PageDataImpl.java
  
  Index: PageDataImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/PageDataImpl.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- PageDataImpl.java	16 Oct 2002 23:23:53 -0000	1.8
  +++ PageDataImpl.java	16 Oct 2002 23:53:02 -0000	1.9
  @@ -456,7 +456,14 @@
   
   	private void appendText(char[] text, boolean createJspTextElement) {
   	    if (createJspTextElement) {
  -		buf.append(JSP_TEXT_START);
  +		buf.append("<").append(JSP_TEXT);
  +		buf.append("\n");
  +
  +		// append jsp:id
  +		buf.append("  ").append("jsp:id").append("=\"");
  +		buf.append(jspId++).append("\"\n");
  +		buf.append(">\n");
  +
   		appendCDATA(text);
   		buf.append(JSP_TEXT_END);
   	    } else {
  
  
  

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


Mime
View raw message