jsp 导出world

<%@ page language="java" import="java.util.*,com.rthl.gbww.entity.PlaceCheckQuarterly" pageEncoding="gbk"%> <%@taglib prefix="s" uri="/struts-tags" %> <% String name = ((PlaceCheckQuarterly)request.getAttribute("placeCheckQuarterly")).getName(); String fileName = name + ".doc"; //对中文文件名编码 //fileName = URLEncoder.encode(fileName, "utf-8"); // byte[] yte = fileName.getBytes("GBK"); // String unicoStr = new String(yte, "ISO-8859-1"); response.setHeader("Content-disposition", "attachment; filename=" + fileName); %> <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gbk"> <title>派出所列控阵地季度考核情况</title> </head> <body style="background:#ecead8;"> <form action="place_check_quarterly_update.action" method="post"> <input type="hidden" name="placeCheckQuarterly.id" value="${placeCheckQuarterly.id}" /> <input type="hidden" name="placeCheckQuarterly.insertOrg" value="${placeCheckQuarterly.insertOrg}" /> <input type="hidden" name="placeCheckQuarterly.insertBy" value="${placeCheckQuarterly.insertBy}" /> <input type="hidden" name="placeCheckQuarterly.name" value="${placeCheckQuarterly.name}" /> <table border="1" cellspacing="0" style="color:#999999;" height="30px" width="800px"> <tr height="12px"> <td width="500px" align="center">阵地名称</td> <td width="500px"><s:property value="placeCheckQuarterly.name"></s:property></td> <td width="300px" align="center">考核局道</td> <td width="300px"><input type="text" name="placeCheckQuarterly.channel" value="${placeCheckQuarterly.channel}"/></td> </tr> <tr height="30px"> <td align="center" >联络员</td> <td><input type="text" name="placeCheckQuarterly.liaisonBy" value="${placeCheckQuarterly.liaisonBy}"/></td> <td align="center">信息员</td> <td><input type="text" name="placeCheckQuarterly.infoBy" value="${placeCheckQuarterly.infoBy}"/></td> </tr> </table> <table border="1" cellspacing="0" style="color: rgb(153, 153, 153);" height="500px" width="800px"> <tr height="22%"> <td align="center" width="3%">考核情况</td> <td colspan="3" align="center" width="95%"><textarea style="width:770px;height:100px" name="placeCheckQuarterly.opinionCheck">${placeCheckQuarterly.opinionCheck}</textarea></td> </tr> <tr height="22%"> <td align="center" width="3%">处理情况</td> <td colspan="3" align="center" width="95%"><textarea style="width:770px;height:100px" name="placeCheckQuarterly.opinionHandle">${placeCheckQuarterly.opinionHandle}</textarea></td> </tr> <tr> <td align="center" width="3%">领导阅示</td> <td colspan="3" align="center" width="97%"><textarea style="width:770px;height:150px" name="placeCheckQuarterly.opinionLeader">${placeCheckQuarterly.opinionLeader}</textarea></td> </tr> <tr height="22%"> <td align="center" width="3%">备注</td> <td colspan="3" align="center" width="97%"><textarea style="width:770px;height:100px" name="placeCheckQuarterly.remarks">${placeCheckQuarterly.remarks}</textarea></td> </tr> </table> </form> </body> </html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值