关于html:file标签的问题?缓存? 现在用html:file实现读取文件内容到画面上。发现一个问题,选择完文件之后,手动把文件删除掉,这时候点读取,仍然能够读到内容。这时缓存问题吗?或者是?struts文件处理 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 jsp<html:file styleClass="input_file_1000" property="storeInfoFile" value="storeInfoFile.fileName" styleId="storeInfoFile" /> <div class="right_button"> <input type="button" class="button" value="读取" onclick="VwsSubmit('Import');" /> </div> XfUploader uploader = new XfUploader(FormFile);uploader.open();.........................public class XfUploader {........................... public void open() throws IOException, FileNotFoundException { this.inStreamReader = null; this.reader = null; InputStream inStream = this.formFile.getInputStream(); this.inStreamReader = new InputStreamReader(inStream); this.reader = new BufferedReader(this.inStreamReader); }} 可能是有缓存吧,建议debug模式下一步步跟进去看看 json字符串转换成javaBean中的Timestamp类型 js问题 小弟崩溃了,求各位大神拯救 急~~ jsp调用cab 未解决的问题,一个星期了 Struts转到错误页面 servlet配置问题。求助。 如何取得Bean的class的绝对路径? 放置web-inf目录的问题 在Jsp服务器里,URL请求 http://xxx.xxx.xxx.xxx/中文资料.txt (是汉字文件名)能通过吗? 求大神解决莫名其妙的字符集问题 JSTL赋值的问题
<input type="button" class="button" value="读取" onclick="VwsSubmit('Import');" />
</div>
XfUploader uploader = new XfUploader(FormFile);
uploader.open();
.........................public class XfUploader {
...........................
public void open() throws IOException, FileNotFoundException { this.inStreamReader = null;
this.reader = null;
InputStream inStream = this.formFile.getInputStream();
this.inStreamReader = new InputStreamReader(inStream);
this.reader = new BufferedReader(this.inStreamReader);
}
}