java.io.InputStream is = new FileInputStream
这句可能会抛出异常!
FileInputStream
Throws:
FileNotFoundException - if the file does not exist, is a directory rather than a regular file, or for some other reason cannot be opened for reading.
public String getRelativePath()这个后面加句 throws Exception
这句可能会抛出异常!
FileInputStream
Throws:
FileNotFoundException - if the file does not exist, is a directory rather than a regular file, or for some other reason cannot be opened for reading.
public String getRelativePath()这个后面加句 throws Exception
解决方案 »
- 使用HttpServletResponse 设置了下载文件
- 请教一个数据库的问题。
- 超级郁闷的问题,在线等。。。图片上传成功,但老显示上一次的图片
- 如何配置我的struts模块
- 单独 执行页面 是500服务器内部错误,如果从主页上连接的话就是404请求资源不可用错误,是个小的jsp文件,是个赌博游戏,可以帮我看看吗?谢谢
- 连接池连接SQLServer2000问题
- java replace的问题
- 在jsp/servlet/bean中如何实现“将内容发到对方电子邮箱”的功能?
- javabean可以这样用吗?
- 有关JSP页面刷新问题
- 在不加签证的情况下.applet是否能访问本地机资源??(我已经把WEB安全机制降到最低了!!)
- hibernate session关闭的问题
try
{
is= new FileInputStream("E:/eclipse/workspace/cyzx/cyzx/WEB-INF/relativepath.properties");
}catch(FileNotFoundException fe){...}
你这个也太搞笑了,呵呵