Mercurial > hg > digilib
annotate client/digitallibrary/digimage_img_inc.jsp @ 290:14f61c571c16
Servlet version 1.5.0b -- the beginning of the next generation :-)
- code restructuring to improve scaleability
- new Initialiser servlet that must be run first
- image transformation work moved to DigilibImageWorker class
- Maximum number of concurrent threads limited by Semaphore
- old JIMI toolkit implementation removed
author | robcast |
---|---|
date | Sun, 24 Oct 2004 20:23:49 +0200 |
parents | 2f4764230089 |
children | 93b9bd7cbb20 |
rev | line source |
---|---|
239
2f4764230089
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
1 <%@ page language="java" %><% |
2f4764230089
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
2 // retrieve objects from context |
2f4764230089
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
3 digilib.servlet.DocumentBean docBean = (digilib.servlet.DocumentBean) pageContext.getAttribute("docBean", pageContext.REQUEST_SCOPE); |
2f4764230089
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
4 digilib.servlet.DigilibRequest dlRequest = docBean.getRequest(); |
2f4764230089
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
5 %> |
2f4764230089
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
6 <div id="scaler" style="position:absolute; left:10px; top:10px; visibility:visible"> |
2f4764230089
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
7 <script type="text/javascript"> |
2f4764230089
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
8 var ps = bestPicSize(getElement('scaler'), 10); |
2f4764230089
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
9 document.write('<img id="pic" src="<%= |
2f4764230089
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
10 dlRequest.getAsString("base.url") + "/servlet/Scaler?" + dlRequest.getAsString() |
2f4764230089
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
11 %>&dw='+ps.width+'&dh='+ps.height+'" />'); |
2f4764230089
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
12 </script> |
2f4764230089
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
13 </div> |