<% String content1=request.getParameter("content");
if(content1==null){...;}
byte d[]=content1.getBytes("ISO-8859-1");
content1=new String(d);
%>
<STYLE>
.WithBreaks { word-wrap:break-word;width:580;white-Space
re;}
.WithBreaks2 { word-wrap:break-word;width:500}
.NormalValue { word-wrap:normal;
width:600}
textarea.content
{
overflow-y:visible;
border:0px;
font-size:12px;
font-family: 宋体 Fixedsys;
line-height:150%;
overflow:visible;
border-width:0px;
width:550px;
height:40px;
}
</STYLE>
<% String filename="exemple.jsp";
File f=new File("D:/text/home/file",filename);
try{
FileWriter outfile=new FileWriter(f);
BufferedWriter bufferout=new BufferedWriter(outfile);
bufferout.write("<html>....<body>");
bufferout.write("<TEXTAREA class=content readOnly>");
bufferout.write(content1);
//帮你改了一下。应该能够理解吧???
bufferout.write("</TEXTAREA>");
bufferout.write("</body></html>");
bufferout.flush();
bufferout.close();
outfile.close();
}
catch(IOException ee){}
%>