各位大侠,在ASP里,
<textarea rows="10" cols="92" readonly>
<!--#include file = "agreement.inc"-->
</textarea>
能够显示文本文件
在Jsp里怎样能达到同样的效果?(把agreement.inc显示出来)
恳请赐教!
<textarea rows="10" cols="92" readonly>
<!--#include file = "agreement.inc"-->
</textarea>
能够显示文本文件
在Jsp里怎样能达到同样的效果?(把agreement.inc显示出来)
恳请赐教!
解决方案 »
- AbstractWizardFormController中如何上传文件啊?
- 多级录入表格中如何实现类似与异步树的机制
- 一个jsp 自动登陆bug
- 笨姑娘~~求一ibatis+struts简单例子
- NullPointerException空指针异常,两天了都没搞定,不知道是怎么产生的哦~~
- 一个专业的ui界面设计网站
- 关于反射机制和<jsp:setProperty name="Bean" property="*"/>
- 求你们救救我吧~~!
- 加载百度地图时无法获取“lng” 值对象为空或未定义
- tomcat正常启动,域名、localhost、127.0.0.1均无法打开,昨天还正常呢?怎么回事?
- 请教关于 frame 页面跳转问题:同一按钮两次点击,跳转到不同页面?
- JFreeChart高手!
public class ReadWriteFile{
public static void main(String[] args){
try{File read = new File("c:\\1.txt");
File write = new File("c:\\2.txt"); BufferedReader br = new BufferedReader(
new FileReader(read));
BufferedWriter bw = new BufferedWriter(
new FileWriter(write));
String temp = null;
temp = br.readLine();
while(temp != null){
//写文件
bw.write(temp + "\n"); //只适用Windows系统
//继续读文件
temp = br.readLine();
}bw.close();
br.close();}catch(FileNotFoundException e){ //文件未找到
System.out.println (e);
}catch(IOException e){
System.out.println (e);
}
}
}