Changeset 848
- Timestamp:
- Jun 30, 2005, 11:15:42 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/clients/web/net/sf/basedb/clients/web/servlet/Download.java
r693 r848 133 133 String mimeType = forceMimeType != null ? forceMimeType : f.getMimeType(); 134 134 mimeType = mimeType != null ? mimeType : defaultMimeType; 135 // TODO - fix this so it works with both download and view136 135 response.setContentType(mimeType); 137 136 if (download) response.setHeader("Content-Disposition", "attachment;filename="+f.getName()); -
trunk/src/core/net/sf/basedb/util/XMLUtil.java
r791 r848 24 24 */ 25 25 package net.sf.basedb.util; 26 27 26 28 27 import java.io.InputStream; … … 63 62 64 63 /** 65 Convert a <code>Document</code> to xml. The encoding is set to ISO-8859-1.64 Convert a <code>Document</code> to xml. The encoding is set to UTF-8. 66 65 @param dom The document 67 66 @return The XML … … 69 68 public static String toXml(Document dom) 70 69 { 71 XMLOutputter out = new XMLOutputter(Format.getCompactFormat().setEncoding(" ISO-8859-1"));70 XMLOutputter out = new XMLOutputter(Format.getCompactFormat().setEncoding("UTF-8")); 72 71 return out.outputString(dom); 73 72 } -
trunk/www/WEB-INF/web.xml
r672 r848 29 29 30 30 <web-app> 31 <display-name>BASE</display-name> 32 <description> 33 Welcome to BASE 34 </description> 31 <display-name>BASE</display-name> 32 <description> 33 The BASE 2 web application. 34 </description> 35 35 36 <error-page> 36 37 <exception-type>java.lang.Throwable</exception-type> 37 38 <location>/exception/exception.jsp</location> 38 39 </error-page> 40 41 <!-- The View servlet used to download files in view mode --> 39 42 <servlet> 40 43 <servlet-name>view</servlet-name> … … 48 51 </servlet> 49 52 53 <!-- The Download servlet used to download files in download mode --> 50 54 <servlet> 51 55 <servlet-name>download</servlet-name> … … 71 75 <url-pattern>/my_base/files/view/*</url-pattern> 72 76 </servlet-mapping> 73 77 78 <!-- A filter that sets the character encoding on all *.jsp files --> 79 <filter> 80 <filter-name>characterEncoding</filter-name> 81 <filter-class>net.sf.basedb.clients.web.servlet.CharacterEncodingFilter</filter-class> 82 <init-param> 83 <param-name>characterEncoding</param-name> 84 <param-value>ISO-8859-1</param-value> 85 <!-- 86 <param-value>UTF-8</param-value> 87 --> 88 </init-param> 89 </filter> 90 91 <filter-mapping> 92 <filter-name>characterEncoding</filter-name> 93 <url-pattern>*.jsp</url-pattern> 94 </filter-mapping> 74 95 75 96 </web-app> -
trunk/www/include/scripts/table.js
r825 r848 28 28 @version 2.0 29 29 */ 30 31 30 var Table = new TableClass(); 32 31 function TableClass() … … 297 296 frm.quickvalue.value = frm.quickvalue_string.value; 298 297 } 298 //frm.action = "test.jsp"; 299 299 frm.submit(); 300 300 }
Note: See TracChangeset
for help on using the changeset viewer.