如题,部分代码:
<%@ page contentType="application/msword;charset=GB2312" errorPage = "/home/errPage.jsp" language="java" %>。
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:PunctuationKerning/>
  <w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing>
  <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>
  <w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  <w:Compatibility>
   <w:SpaceForUL/>
   <w:BalanceSingleByteDoubleByteWidth/>
   <w:DoNotLeaveBackslashAlone/>
   <w:ULTrailSpace/>
   <w:DoNotExpandShiftReturn/>
   <w:AdjustLineHeightInTable/>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:DontGrowAutofit/>
   <w:UseFELayout/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
  <w:View>Print</w:View>
 </w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
 </w:LatentStyles>
</xml><![endif]-->........
<body lang=ZH-CN style='tab-interval:21.0pt;text-justify-trim:punctuation'>
  <%
  String currenttime=request.getParameter("currenttime");
  String workshift=request.getParameter("workshift");String workshiftname="",worksessionname="",worksession="";
  String tensql="select o from TmisRunSwitch as o where o.comp_id.workShift="+workshift+" and o.comp_id.currenttime=to_date('"+currenttime+"','yyyy-mm-dd')";
  String worktime="",workrecords="";
  List telist=HbmDAO.queryByHQL(tensql);
 等等我的jsp页面是按照上面的方法来的,但是导出word的时候视图是普通视图,怎么变成页面视图呢???还有怎么加上页脚,标识共几页,第几页等