⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getimga.jsp

📁 java阿里巴巴代码
💻 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 + -