tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28168] - patch to add webdoclet tags to jspc output
Date Fri, 02 Apr 2004 21:03:08 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28168>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28168

patch to add webdoclet tags to jspc output





------- Additional Comments From toby@caboteria.org  2004-04-02 21:03 -------
Here's a less intrusive version of the patch; no changes, only adds:

Index: jasper/src/share/org/apache/jasper/compiler/JspParseEventListener.java
===================================================================
RCS file:
/home/cvspublic/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/JspParseEventListener.java,v
retrieving revision 1.38
diff -u -u -r1.38 JspParseEventListener.java
--- jasper/src/share/org/apache/jasper/compiler/JspParseEventListener.java     
21 May 2002 01:40:13 -0000   1.38
+++ jasper/src/share/org/apache/jasper/compiler/JspParseEventListener.java     
2 Apr 2004 21:01:58 -0000
@@ -273,6 +273,15 @@
        generateAll(FileDeclarationPhase.class);
        writer.println();
  
+        writer.println("/**");
+        if (! "".equals(servletPackageName) && servletPackageName != null) {
+            writer.println(" * @web.servlet name=\"" + servletPackageName + "."
+ servletClassName + "\"");
+        } else {
+            writer.println(" * @web.servlet name=\"" + servletClassName + "\"");
+        }
+        writer.println(" * @web.servlet-mapping url-pattern=\"" +
ctxt.getJspFile() + "\"");
+        writer.println(" */");
+
        writer.print("public class "+servletClassName+ " extends ");
        writer.print(extendsClass.equals("") ? jspServletBase : extendsClass);

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


Mime
View raw message