Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F887793
zeroURL.jsp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Aug 10, 5:33 AM
Size
3 KB
Mime Type
text/html
Expires
Tue, Aug 12, 5:33 AM (15 h, 20 m)
Engine
blob
Format
Raw Data
Handle
244698
Attached To
rDIAS DIAS
zeroURL.jsp
View Options
This document is not UTF8. It was detected as ISO-8859-1 (Latin 1) and converted to UTF8 for display.
<%@
page
language
=
"java"
contentType
=
"text/html; charset=iso-8859-7"
isELIgnored
=
"false"
%>
<%@
taglib
prefix
=
"c"
uri
=
"http://java.sun.com/jsp/jstl/core"
%>
<%@
taglib
prefix
=
"fn"
uri
=
"http://java.sun.com/jsp/jstl/functions"
%>
<%@
page
import
=
"java.sql.*"
%>
<%@
page
import
=
"java.sql.Date"
%>
<%@
page
import
=
"java.util.*"
%>
<%@
page
import
=
"java.text.*"
%>
<%@
page
import
=
"net.spy.memcached.MemcachedClient"
%>
<%@
page
import
=
"java.net.InetSocketAddress"
%>
<%@
page
import
=
"javax.xml.parsers.*"
%>
<%@
page
import
=
"java.io.File"
%>
<%@
page
import
=
"org.w3c.dom.Document"
%>
<%@
page
import
=
"org.w3c.dom.NodeList"
%>
<%@
page
import
=
"org.w3c.dom.Node"
%>
<%@
page
import
=
"org.w3c.dom.Element"
%>
<%@
page
import
=
"in.raster.oviyam.servlet.getXML"
%>
<%
String
token
=
request
.
getParameter
(
"token"
);
PreparedStatement
prepStatement
;
ResultSet
results
;
String
IP
=
""
;
String
port
=
""
;
if
(
token
!=
null
){
try
{
File
fXmlFile
=
new
File
(
getXML
.
getInstance
().
getWebInfPath
()+
"memcached_conf.xml"
);
DocumentBuilderFactory
dbFactory
=
DocumentBuilderFactory
.
newInstance
();
DocumentBuilder
dBuilder
=
dbFactory
.
newDocumentBuilder
();
Document
doc
=
dBuilder
.
parse
(
fXmlFile
);
doc
.
getDocumentElement
().
normalize
();
NodeList
nList
=
doc
.
getElementsByTagName
(
"memcached"
);
Node
nNode
=
nList
.
item
(
0
);
Element
eElement
=
(
Element
)
nNode
;
IP
=
eElement
.
getElementsByTagName
(
"IP"
).
item
(
0
).
getTextContent
();
port
=
eElement
.
getElementsByTagName
(
"port"
).
item
(
0
).
getTextContent
();
}
catch
(
Exception
e
)
{
System
.
out
.
println
(
e
);
}
//******* Memcached
MemcachedClient
memcacheClient
=
new
MemcachedClient
(
new
InetSocketAddress
(
IP
,
Integer
.
parseInt
(
port
)));
//*********
if
((
memcacheClient
.
get
(
token
+
"_patid"
)
!=
null
)
&&
(
memcacheClient
.
get
(
token
+
"_used"
)
!=
null
)
&&
(
memcacheClient
.
get
(
token
+
"_used"
).
equals
(
"0"
))){
request
.
setAttribute
(
"patientID"
,
memcacheClient
.
get
(
token
+
"_patid"
));
memcacheClient
.
set
(
token
+
"_used"
,
30
,
1
);
String
url
=
"webview?studyUID="
+
memcacheClient
.
get
(
token
+
"_studyuid"
)+
"&patientID="
+
memcacheClient
.
get
(
token
+
"_patid"
)+
"&accessionNumber="
+
memcacheClient
.
get
(
token
+
"_accno"
)+
"&patientName="
+
memcacheClient
.
get
(
token
+
"_patname"
);
Cookie
tkn
=
new
Cookie
(
"inf"
,
token
);
tkn
.
setMaxAge
(
60
*
60
);
response
.
addCookie
(
tkn
);
request
.
setAttribute
(
"inf"
,
token
);
memcacheClient
.
shutdown
();
RequestDispatcher
rd
=
request
.
getRequestDispatcher
(
url
);
rd
.
forward
(
request
,
response
);
}
else
{
out
.
println
(
"Invalid token."
);
}
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>
DICOM Web Viewer
</title>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=iso-8859-7"
>
</head>
<body
id=
"body"
>
<p>
Ãéá ëüãïõò áóöáëåßáò ï óýíäåóìïò Ý÷åé ëÞîåé. Ðáñáêáëïýìå ìåôáâåßôå óôçí áíáæÞôçóç ôùí åîåôÜóåùí êáé ðñïóðáèÞóôå íá áíïßîåôå êáé ðÜëé ôçí åîÝôáóç.
</p>
</body>
</html>
Event Timeline
Log In to Comment