Mercurial > hg > digilib
comparison webapp/src/main/webapp/dlInfo-xml.jsp @ 1169:888cdaf022fe
shuffling classes around: moved last servlet dependencies from common to new servlet module.
moved common code from servlet2 and servlet3 to servlet.
moved DigilibConfiguration and DigilibRequest to digilib.conf package (needs changes in JSPs).
author | robcast |
---|---|
date | Wed, 27 Mar 2013 17:23:44 +0100 |
parents | de9c762ef86b |
children |
comparison
equal
deleted
inserted
replaced
1168:6c5eb1896cc0 | 1169:888cdaf022fe |
---|---|
17 You should have received a copy of the GNU General Lesser Public | 17 You should have received a copy of the GNU General Lesser Public |
18 License along with this program. If not, see | 18 License along with this program. If not, see |
19 <http://www.gnu.org/licenses/lgpl-3.0.html>. | 19 <http://www.gnu.org/licenses/lgpl-3.0.html>. |
20 #L% | 20 #L% |
21 Author: Robert Casties (robcast@berlios.de) | 21 Author: Robert Casties (robcast@berlios.de) |
22 --%><%@ page language="java" %><%! | 22 --%><%@ page language="java" |
23 import="digilib.servlet.DocumentBean, | |
24 digilib.conf.DigilibServletRequest"%><%! | |
23 // create DocumentBean instance for all JSP requests | 25 // create DocumentBean instance for all JSP requests |
24 digilib.servlet.DocumentBean docBean = new digilib.servlet.DocumentBean(); | 26 DocumentBean docBean = new DocumentBean(); |
25 | 27 |
26 // initialize DocumentBean instance in JSP init | 28 // initialize DocumentBean instance in JSP init |
27 public void jspInit() { | 29 public void jspInit() { |
28 try { | 30 try { |
29 // set servlet init-parameter | 31 // set servlet init-parameter |
33 } | 35 } |
34 } | 36 } |
35 %><?xml version="1.0" encoding="UTF-8" ?> | 37 %><?xml version="1.0" encoding="UTF-8" ?> |
36 <% | 38 <% |
37 // process request | 39 // process request |
38 // get digilib config | |
39 digilib.servlet.DigilibConfiguration dlConfig = docBean.getDlConfig(); | |
40 // parsing the query | 40 // parsing the query |
41 digilib.servlet.DigilibServletRequest dlRequest = new digilib.servlet.DigilibServletRequest(request); | 41 DigilibServletRequest dlRequest = new DigilibServletRequest(request); |
42 docBean.setRequest(dlRequest); | 42 docBean.setRequest(dlRequest); |
43 | 43 |
44 %><!-- Automatically generated XML snippet with document parameters --> | 44 %><!-- Automatically generated XML snippet with document parameters --> |
45 <document-parameters> | 45 <document-parameters> |
46 <% | 46 <% |