?? getimga.jsp
字號:
<%@ page contentType="text/html;charset=GBK" language="java"%>
<jsp:useBean id="attaBean" class="com.saas.biz.attachMgr.Attachinfo" scope="page" />
<%@ page import="java.util.*"%>
<%
String ImgUrl="/upload/default.gif";
String root_id="";
if(request.getParameter("root_id")!=null)
{
root_id=request.getParameter("root_id");
ArrayList list=attaBean.getAttachInfoByList(root_id);
if(list !=null && list.size()>0){
for(int i=0;i<list.size();i++){
HashMap map=(HashMap)list.get(0);
String file_path="";
if(map.get("file_path")!=null){
file_path=map.get("file_path").toString();
file_path=file_path.substring(23);
ImgUrl=file_path;
}
}
}
}
out.print(ImgUrl);
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -