source: other-projects/trunk/realistic-books/packages/AntInstaller/web/.classes/manual_0002dprint.java@ 19253

Last change on this file since 19253 was 19253, checked in by davidb, 15 years ago

Establishing a source code repository for Veronica's Realistic Book's software

File size: 4.1 KB
Line 
1import javax.servlet.jsp.*;
2import javax.servlet.jsp.tagext.*;
3import java.io.PrintWriter;
4import java.io.IOException;
5import java.io.FileInputStream;
6import java.io.ObjectInputStream;
7import java.util.Vector;
8import org.tp23.jasper.runtime.*;
9import java.beans.*;
10import org.tp23.jasper.*;
11import org.tp23.jsp.*;
12import java.io.*;
13import java.util.*;
14
15
16public class manual_0002dprint extends ObjectJspBase {
17
18
19 static {
20 }
21 public manual_0002dprint( ) {
22 }
23
24 private static boolean _jspx_inited = false;
25
26 public final void _jspx_init() throws JasperException {
27 }
28
29 public void _jspService(final Destination destination)
30 throws IOException, JspEngineException {
31
32 ObjectJspFactory _jspxFactory = null;
33 ObjectPageContext pageContext = null;
34 Session session = null;
35 ObjectContainerContext application = null;
36 ObjectConfig config = null;
37 ObjectJspWriter out = null;
38 Object page = this;
39 String _value = null;
40 try {
41
42 if (_jspx_inited == false) {
43 _jspx_init();
44 _jspx_inited = true;
45 }
46 _jspxFactory = destination.getServer().getObjectJspFactory();
47 pageContext = _jspxFactory.getPageContext(this, destination,
48 "", true, 8192, true);
49
50 application = pageContext.getObjectContainerContext();
51 config = pageContext.getObjectConfig();
52 session = destination.getSession();
53 out = pageContext.getOut();
54
55 // HTML // begin [file="/home/teknopaul/workspace/AntInstaller/web/home/teknopaul/workspace/AntInstaller/web/manual-print.jsp";from=(0,0);to=(13,0)]
56 out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n<html>\r\n<head>\r\n <title>Ant Installer</title>\r\n <link href=\"style-print.css\" type=\"text/css\" rel=\"stylesheet\">\r\n <link rel=\"SHORTCUT ICON\" href=\"images/antinstaller-icon.png\">\r\n <meta name=\"keywords\"\r\n content=\"Ant, installer, AntInstaller, gui, console, input, parameters, properties, swing, user interface, validation, configuration\">\r\n</head>\r\n<body>\r\n\t<div class=\"tpheadertitle\">AntInstaller</div>\r\n\t<div class=\"tpcontent\">\r\n<!-- JSP start -->\r\n");
57 // end
58 // HTML // begin [file="/home/teknopaul/workspace/AntInstaller/web/home/teknopaul/workspace/AntInstaller/web/manual-print.jsp";from=(13,28);to=(14,0)]
59 out.write("\r\n");
60 // end
61 // HTML // begin [file="/home/teknopaul/workspace/AntInstaller/web/home/teknopaul/workspace/AntInstaller/web/manual-print.jsp";from=(14,30);to=(15,0)]
62 out.write("\r\n");
63 // end
64 // begin [file="/home/teknopaul/workspace/AntInstaller/web/home/teknopaul/workspace/AntInstaller/web/manual-print.jsp";from=(15,2);to=(34,0)]
65
66
67 String strJspDir = (String)application.getAttribute("myjasper.jsp.dir");
68 File fleJspDir = new File(strJspDir);
69
70 BufferedReader br = new BufferedReader(new FileReader(new File(fleJspDir, "manual.html")));
71 String line = null;
72 boolean copy = false;
73 while((line = br.readLine()) != null){
74 if(line.indexOf("<h2>Manual</h2>") > -1) {
75 copy = true;
76 }
77 else if(line.indexOf("<!-- content end [segment-end]-->") > -1) {
78 copy = false;
79 }
80 if(copy) {
81 out.println(line);
82 }
83 }
84 // end
85 // HTML // begin [file="/home/teknopaul/workspace/AntInstaller/web/home/teknopaul/workspace/AntInstaller/web/manual-print.jsp";from=(34,2);to=(39,0)]
86 out.write("\r\n\t</div>\r\n</div>\r\n</body>\r\n</html>\r\n");
87 // end
88
89 } catch (Exception ex) {
90 if (out.getBufferSize() != 0)
91 out.clearBuffer();
92 pageContext.handlePageException(ex);
93 } finally {
94 out.flush();
95 _jspxFactory.releasePageContext(pageContext);
96 }
97 }
98}
Note: See TracBrowser for help on using the repository browser.