Commit 7cd27cde by 罗绍泽

图片

parent d4b5bd1a
...@@ -907,7 +907,7 @@ function init_index_application(){ ...@@ -907,7 +907,7 @@ function init_index_application(){
if((i+1)%5==0){ if((i+1)%5==0){
app_div.css('marginRight','0'); app_div.css('marginRight','0');
} }
var app_img=$('<img width="46" height="46" />').attr('src',list_insert[i].IMG_ID_S); var app_img=$('<img width="46" height="46" />').attr('src',ctx+'/photo/photo.jsp?ls_photo='+list_insert[i].IMG_ID_S);
var app_span=$('<span></span>').text(list_insert[i].NAME); var app_span=$('<span></span>').text(list_insert[i].NAME);
app_div.append(app_img).append(app_span); app_div.append(app_img).append(app_span);
app_container.append(app_div); app_container.append(app_div);
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
String ls_photo = request.getParameter("ls_photo"); String ls_photo = request.getParameter("ls_photo");
if(ls_photo==null || ls_photo.toUpperCase().indexOf("D:")==-1 || ls_photo.indexOf("Tomcat6_mis/webapps")==-1 || ls_photo.lastIndexOf(".gif")==-1){ // if(ls_photo==null || ls_photo.toUpperCase().indexOf("E:")==-1 || ls_photo.indexOf("Tomcat6_mis/webapps")==-1 || ls_photo.lastIndexOf(".gif")==-1){
response.getWriter().write("无效的URL"); // response.getWriter().write("无效的URL");
response.flushBuffer(); // response.flushBuffer();
return; // return;
} // }
//图片文件写入到response //图片文件写入到response
byte[] buffer = new byte[1024]; byte[] buffer = new byte[1024];
InputStream is = null; InputStream is = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment