struts2上传Excel文件 poi再解析.
package com.triman.utils;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import or[......]
struts2上传Excel文件 poi再解析.
package com.triman.utils;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import or[......]
struts2 使用注解 导出excel
struts2 使用注解 导出excel–http://blog.csdn.net/robinpipi/article/details/7767514
做项目中需要用到导出excel的功能,记录一下。
1、使用jxl导出。
这个是从[......]
Java读写Excel的包是Apache POI(项目地址:http://poi.apache.org/),因此需要先获取POI的jar包,本实验使用的是POI 3.9稳定版。
Apache POI 代码例子地址:http://poi.apache.org/spreadsheet/quick-gu[......]
Java字符串,日期的格式化
JSP中常用的格式化包括:
1. 字符串的格式化
2. 字符串和HTML显示内容的格式化
3. 日期的格式化
一、字符串的格式化
字符串处理是项目中使用最频繁的,Java中提供了二种格式化字符串的方法,JDBC还提供了一种问号参数类似于格式化SQL语句。[......]
org.springframework.orm.hibernate3.HibernateSystemException: Unknown entity:
在做多个表映射,保存数据时报错:
org.springframework.orm.hibernate3.HibernateSystemEx[......]
org.springframework.dao.InvalidDataAccessApiUsageException: The given object has a null identifier:
JSP 页面保存操作报错:
org.springframework.dao.InvalidD[......]
org.springframework.orm.hibernate3.HibernateSystemException: Null value was assigned to a property o
hibernate 问题…….
1、是否在sessionFactory配置中加入映[......]
org.springframework.orm.hibernate3.HibernateSystemException: No default constructor for entity: ****
type Exception report
message
description Th[......]
The server encountered an internal error () that prevented it from fulfilling this request.
在配置好从一个action跳转到另一个action后,查询出现了问题,保存action是可以运行的,而跳转到查[......]
Struts2 配置action跳转另一个action
<action name=”save” class=”myAction.saveAction”> //配置save 保存action
<result name=”success” type=”chain”> //[......]