给个默认值: String picpath=(String)request.getAttribute("picpath");
if(picpath == null)picpath = yourDefaultPath;
if(picpath == null)picpath = yourDefaultPath;
解决方案 »
- java中CKEditor3.0图片上传功能开启方法
- 请问STRING 如何转DATE 型啊,搜不到~~~~
- 谢谢指点!!怎样实现同一页面不同frame之间非常量参数的传递??高手请进-->
- Java资料站点,欢迎交换链接
- 各位大哥,救人啊。急!。。。
- 初级的调用存储过程的问题,在线等,50分
- 新手求教java内存溢出的问题
- Jsp+oracle
- 我遇到的错误:Column Not Found错误;刷新页面时自动从第一页跳到最后一页。
- 论坛有点问题,所以。。。。。http://www.csdn.net/Expert/topic/438/438932.shtm
- jdbc返回结果集问题
- jdbc不能返回结果集了....
假设出错或者地址为空就显示默认图片比如String path = "默认图片地址";
if(request.getParameter("picpath")!=null){
path = request.getParameter("picpath");
}
可以用el表达式试一下呀