Changeset 23336 for main/trunk/greenstone3/src
- Timestamp:
- 2010-11-22T17:32:16+13:00 (13 years ago)
- Location:
- main/trunk/greenstone3/src/java/org/greenstone/gsdl3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/SystemAction.java
r23333 r23336 17 17 import javax.xml.parsers.DocumentBuilder; 18 18 import javax.xml.parsers.DocumentBuilderFactory; 19 20 import java.io.PrintWriter; 21 import java.io.StringWriter; 19 22 20 23 import org.apache.log4j.*; … … 75 78 DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); 76 79 DocumentBuilder builder = factory.newDocumentBuilder(); 77 InputSource is = new InputSource( new StringReader( format_string ) ); 80 String input = "<html><head><title></title></head><body>" + format_string + "</body></html>"; 81 InputSource is = new InputSource( new StringReader( input ) ); 78 82 Document d = builder.parse( is ); 79 83 page_response.appendChild(d); … … 81 85 catch( Exception ex ) { 82 86 logger.error("There was an exception "+ex); 87 88 StringWriter sw = new StringWriter(); 89 PrintWriter pw = new PrintWriter(sw, true); 90 ex.printStackTrace(pw); 91 pw.flush(); 92 sw.flush(); 93 logger.error(sw.toString()); 83 94 } 84 95 -
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/TransformingReceptionist.java
r23312 r23336 548 548 String publicID = "-//W3C//DTD HTML 4.01 Transitional//EN"; 549 549 String systemID = "http://www.w3.org/TR/html4/loose.dtd"; 550 550 551 551 // Try to get the system and public ID from the current skin xsl document 552 552 // otherwise keep the default values.
Note:
See TracChangeset
for help on using the changeset viewer.