随笔分类 -  struts2

摘要:1.首先项目里必须有struts2至少依赖的6个jar2.先写一个下载的donwload.jsp页面<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.ge 阅读全文
posted @ 2012-11-12 15:12 小木v587 阅读(209) 评论(0) 推荐(0)
摘要:在项目中要用到查询两个时间段的数据1.在页面里<table> <tr> <td class="STYLE1"><div align="center"> 出行开始日期<input type="text" id="start" value="${start}"/>--- 出行结束日期<input type="text" id="end" value="${end}" /> 阅读全文
posted @ 2012-10-26 15:35 小木v587 阅读(995) 评论(0) 推荐(0)
摘要:第一步:在WEB-INF/lib下加入commons-fileupload-1.2.1.jar、commons-io-1.3.2.jar。这两个文件可以从http://commons.apache.org/下载。第二步:把form表的enctype设置为:“multipart/form-data“,如下:<form enctype="multipart/form-data" action="${pageContext.request.contextPath}/xxx.action" method="post"> <i 阅读全文
posted @ 2012-10-20 13:15 小木v587 阅读(189) 评论(0) 推荐(0)