最近,项目里面用到了Jfinal 里面的上传附件。Jfinal 的Controller 里面提供了一个 getFile系列方法提供文件上传。
我这里呢,是文件上传和表单参数一起提交。页面类似下图:
这里form表单里面使用了 enctype="multipart/form-data" 。先看看Jfinal手册的说明吧!大家看了就知道了
然后还有个问题 如果是表单...
分类:
其他好文 时间:
2014-07-12 19:12:17
阅读次数:
1377
今天在pdf和excel中都实现了在浏览器弹出下载框
将之前在网上查找的生成excel表格代码稍微修改下:
public class CreateSimpleExcelToDisk {
/**
* @功能:手工构建一个简单格式的Excel
*/
private static List getNews() throws Exception
{
List data = new A...
分类:
编程语言 时间:
2014-07-12 16:57:35
阅读次数:
267
CONVERT(data_type,expression[,style])convert(varchar(10),字段名,转换格式)说明:此样式一般在时间类型(datetime,smalldatetime)与字符串类型(nchar,nvarchar,char,varchar)相互转换的时候才用到.语...
分类:
其他好文 时间:
2014-07-12 15:28:39
阅读次数:
261
一 概述:HttpWatch强大的网页数据分析工具.集成在Internet Explorer工具栏.包括网页摘要.Cookies管理.缓存管理.消息头发送/接受.字符查询.POST 数据和目录管理功能.报告输出 HttpWatch 是一款能够收集并显示页页深层信息的软件。它不用代理服务器或一些复杂的...
分类:
其他好文 时间:
2014-07-12 14:42:31
阅读次数:
424
1 #include 2 #include 3 typedef struct Node 4 { 5 int data; 6 struct Node *next; 7 }Node,*LinkList; 8 9 void initList(LinkList *L)10 {11 ...
分类:
其他好文 时间:
2014-07-12 14:38:30
阅读次数:
201
Directives: directive是嵌入到源码中的命令,由汇编编译器识别和执行。 而 Instruction是在运行时被执行的。 例如, .data 属于 directive , 而 mov , add 属于Instruction. 对统一架构的处理器来说,Instruction对所有...
分类:
其他好文 时间:
2014-07-12 14:29:13
阅读次数:
162
GET方法——传送url里的参数将提交的参数写到open方法的 url 参数中,send方法的参数为nullvar url = "test.php?id=XXX";xml.open("GET", url, true);xml.send(null);POST方法——传送send方法里的参数在send方...
分类:
编程语言 时间:
2014-07-12 14:20:21
阅读次数:
219
BACKGROUND1. FieldInnovations herein pertain to computer virtualization, computer security and/or data isolation, and/or the use of a separation kerne...
分类:
其他好文 时间:
2014-07-12 14:12:35
阅读次数:
205
using System;using System.Collections.Generic;using System.Data.Entity;using System.Data.Entity.Infrastructure;namespace My{ /// Entity Framework公...
分类:
其他好文 时间:
2014-07-12 14:08:06
阅读次数:
181
SqlException.Number的所有错误值列表
分类:
数据库 时间:
2014-07-12 14:00:20
阅读次数:
231