Commit aa4a95af authored by James's avatar James
Browse files

jfinal 1.9 release ^_^

Showing with 7 additions and 3 deletions
+7 -3
......@@ -90,7 +90,7 @@ public class Prop {
if (file == null)
throw new IllegalArgumentException("File can not be null.");
if (file.isFile() == false)
throw new IllegalArgumentException("File not found : " + file.getName());
throw new IllegalArgumentException("Not a file : " + file.getName());
InputStream inputStream = null;
try {
......
......@@ -187,11 +187,11 @@ public class FileRender extends Render {
}
}
// condition like: 9500-
// Range format like: 9500-
if (range[0] != null && range[1] == null) {
range[1] = fileLength - 1;
}
// condition like: -500
// Range format like: -500
else if (range[0] == null && range[1] != null) {
range[0] = fileLength - range[1];
range[1] = fileLength - 1;
......
......@@ -109,11 +109,15 @@ public class RenderFactory {
private void initJspRender(ServletContext servletContext) {
try {
Class.forName("javax.el.ELResolver");
Class.forName("javax.servlet.jsp.JspFactory");
com.jfinal.plugin.activerecord.ModelRecordElResolver.init(servletContext);
}
catch (ClassNotFoundException e) {
// System.out.println("Jsp or JSTL can not be supported!");
}
catch (Exception e) {
}
}
private void initFileRender(ServletContext servletContext) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment