word模版另存为网页(*.htm,*.html),转为jsp页面并加入数据后导出成word

word模版另存为网页之后,将html格式的文件转为jsp页面,在页面上加入相应的动态值,加入的值中包含图片,这个该怎么处理??另外导出的文件需要拷贝到不同的地方(无法联网)使用。

<%@ page contentType="application/vnd.ms-word; charset=GBK" language="java" import="java.util.*,java.io.*"%>
<%@ taglib uri="tableURI" prefix="Combo" %>
<%response.setContentType("application/msword");%>
<%response.setHeader("Content-Type","application/msword");%>
<%response.setHeader("Content-disposition","attachment;filename=djb.doc");%>
<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="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 11">
<meta name=Originator content="Microsoft Word 11">
<link rel=File-List href="xmfiles/filelist.xml">
<link rel=Edit-Time-Data href="xm.files/editdata.mso">

<%
 String jc=request.getParameter("jc");
 String dbzt=request.getParameter("dbzt");
try{
 int j=1;
 ArrayList aList = new ArrayList();
 ArrayList aListXjdwid = new ArrayList();
 aListXjdwid = getNominee.selectXjdw();
%>
<body lang=ZH-CN style='tab-interval:21.0pt;text-justify-trim:punctuation'>网址:yii666.com<网址:yii666.com

<div class=Section1 style='layout-grid:15.6pt'>文章来源地址https://www.yii666.com/article/764121.html

<%
 for(int k=0;k<aListXjdwid.size();k++){
%>
<p class=MsoNormal style='margin-left:-.65pt;mso-para-margin-left:-.06gd'><span
lang=EN-US style='mso-bidi-font-size:14.0pt'><o:p>代表团:<Combo:code displayStyle="" codeColName="xjdwid" descColName="xjdwname" codeTableName="xjdw" condition=" Display=1 order by Xh" code="<%=aListXjdwid.get(k).toString()%>"/></o:p></span></p>

jsp中的代码如上,有没有人有好的建议??烦请指导!!文章地址https://www.yii666.com/article/764121.html文章来源地址:https://www.yii666.com/article/764121.html

版权声明:本文内容来源于网络,版权归原作者所有,此博客不拥有其著作权,亦不承担相应法律责任。文本页已经标记具体来源原文地址,请点击原文查看来源网址,站内文章以及资源内容站长不承诺其正确性,如侵犯了您的权益,请联系站长如有侵权请联系站长,将立刻删除

word模版另存为网页(*.htm,*.html),转为jsp页面并加入数据后导出成word-相关文章

  1. c# html 导出word

  2. 网页导出成word文档的默认视图方式问题

  3. word模版另存为网页(*.htm,*.html),转为jsp页面并加入数据后导出成word

  4. java导出生成word

    最近做的项目,需要将一些信息导出到word中。在网上找了好多解决方案,现在将这几天的总结分享一下。目前来看,java导出word大致有6种解决方案:1:Jacob是Java-COM Bridge的缩写,它在Java与微软的COM组件之间构建一座桥梁。使用Jacob自带的DLL动态链接库,并通过JNI的方式实现了

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信图片_20190322181744_03.jpg

微信扫一扫打赏

请作者喝杯咖啡吧~

支付宝扫一扫领取红包,优惠每天领

二维码1

zhifubaohongbao.png

二维码2

zhifubaohongbao2.png