Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jfV5portal
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
管理员
jfV5portal
Commits
7cd27cde
Commit
7cd27cde
authored
May 04, 2018
by
罗绍泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图片
parent
d4b5bd1a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
index.js
WebContent/jfcas04/js/index.js
+1
-1
photo.jsp
WebContent/photo/photo.jsp
+5
-5
No files found.
WebContent/jfcas04/js/index.js
View file @
7cd27cde
...
@@ -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
);
...
...
WebContent/photo/photo.jsp
View file @
7cd27cde
...
@@ -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;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment