摘要:
前台上传文件的jsp页面(部分):<form action="importExcel" enctype="multipart/form-data" method="post"> 选择文件: <input type="file" name="excelfilename"><br> 请选择年份:<input type="text" name="qwe" id="qwe" onClick=" 阅读全文
摘要:
PrintWriter out = response.getWriter(); out.print("<script>alert('数据添加成功');location.href='/JFreeChartTest/upload_file.jsp'</script>"); 如果前台弹出的提示框中显示的是????,需添加response.setContentType( "text/html;charset=GBK "); 即: response.setContentType( "text/htm 阅读全文
摘要:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><!DOCTYPE 阅读全文