/[sdx]/demos/quran/index.xsp
ViewVC logotype

Contents of /demos/quran/index.xsp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Sep 28 15:57:53 2003 UTC (20 years, 7 months ago) by brihaye
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
Renamed dbs (unidentified bug on "english" folder-name)

1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!--
3 Copyright (C) 2003, Pierrick Brihaye
4 pierrick.brihaye@wanadoo.fr
5
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 2
9 of the License, or (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 See the GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the
18 Free Software Foundation, Inc.
19 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20 or connect to:
21 http://www.fsf.org/copyleft/gpl.html
22 -->
23 <xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:sdx="http://www.culture.gouv.fr/ns/sdx/sdx">
24 <sdx:page>
25 <xsp:logic>
26 String currentPageLocation = context.getRealPath(request.getServletPath());
27 String currentAppLocation = currentPageLocation.substring(0, currentPageLocation.lastIndexOf(File.separator));
28 String uploadDir = currentAppLocation + File.separator + "documents" + File.separator;
29 </xsp:logic>
30 <!-- DEBUG -->
31 <sdx:login id="admin"/>
32 <!-- test whether the documents are avalaible -->
33 <sdx:executeFieldQuery field="sdxall" value="1" hpp="1">
34 <sdx:fallback>
35 <!-- upload them -->
36 <sdx:uploadDocuments base="ar" dirString="uploadDir" includes="*.xml">
37 <sdx:fallback>
38 <error>Impossible de charger les documents !</error>
39 </sdx:fallback>
40 </sdx:uploadDocuments>
41 <sdx:uploadDocuments base="en" dirString="uploadDir" includes="*.xml">
42 <sdx:fallback>
43 <error>Impossible de charger les documents !</error>
44 </sdx:fallback>
45 </sdx:uploadDocuments>
46 </sdx:fallback>
47 </sdx:executeFieldQuery>
48 <menu/>
49 <viewtoc>
50 <!-- select all suras -->
51 <sdx:executeFieldQuery field="name" value="*" hpp="-1"/>
52 </viewtoc>
53 </sdx:page>
54 </xsp:page>

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26