KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > api > debugger > jpda > testapps > JspLineBreakpointApp


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.api.debugger.jpda.testapps;
21
22 import java.util.Vector JavaDoc;
23 import java.io.PrintWriter JavaDoc;
24 import java.io.IOException JavaDoc;
25
26 public final class JspLineBreakpointApp {
27
28 /**
29  * Sample JSP line breakpoints application. DO NOT MODIFY - line numbers must not change in this source file.
30  *
31  * @author Libor Kotouc
32  */

33   public static void main(String JavaDoc[] args)
34             throws IOException JavaDoc {
35
36
37
38
39     StringBuffer JavaDoc sb = new StringBuffer JavaDoc(1024);
40
41
42     try {
43
44
45
46
47
48
49
50
51
52         
53         
54       sb.append("\r\n");
55       sb.append("\r\n");
56       sb.append("\r\n");
57       sb.append("<html>\r\n");
58       sb.append(" <head>\r\n");
59       sb.append(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
60       sb.append(" <title>JSP Page</title>\r\n");
61       sb.append(" </head>\r\n");
62       sb.append(" <body>\r\n");
63       sb.append("\r\n");
64       sb.append(" <h1>Main Page</h1>\r\n");
65       sb.append(" ");
66       sb.append("<font color=\"red\">\r\n");
67       sb.append(" INCLUDED from d directory\r\n");
68       sb.append("</font>");
69       sb.append("\r\n");
70       sb.append(" <br/>\r\n");
71       sb.append(" ");
72       sb.append("<font color=\"blue\">\n");
73       sb.append(" INCLUDED from &lt;web-root&gt; directory\n");
74       sb.append("</font>");
75       sb.append("\r\n");
76       sb.append(" <br/>\r\n");
77       sb.append(" ");
78       sb.append("<font color=\"blue\">\n");
79       sb.append(" INCLUDED from &lt;web-root&gt; directory\n");
80       sb.append("</font>");
81       sb.append("\r\n");
82       sb.append(" \r\n");
83       sb.append(" </body>\r\n");
84       sb.append("</html>\r\n");
85     } catch (Throwable JavaDoc t) {
86
87         
88         
89         
90         
91         
92         
93         
94     }
95 // out.flush();
96
}
97 }
98
Popular Tags