Index of /www001/src/ports/www/clearsilver-python/work/clearsilver-0.10.5/java-jni
Name Last modified Size Description
Parent Directory 15-Jan-2008 01:36 -
CGI.java 01-Feb-2007 17:06 1k
CS.java 01-Feb-2007 17:06 3k
CSFileLoader.java 05-Jan-2007 14:22 1k
CSTest.java 05-Jan-2007 14:22 10k
CSUtil.java 18-Dec-2006 20:26 2k
HDF.java 01-Feb-2007 17:06 13k
JNI.java 01-Feb-2007 17:06 2k
Makefile 01-Feb-2007 17:06 2k
clearsilver.jar 01-Feb-2007 17:06 8k
j_neo_cgi.c 30-Jun-2005 11:51 1k
j_neo_cs.c 19-Dec-2006 15:44 5k
j_neo_util.c 19-Dec-2006 15:44 13k
j_neo_util.h 18-Dec-2006 19:36 1k
javatest.gold 18-Dec-2006 20:20 4k
servlet/ 12-Jul-2007 13:08 -
testdata/ 12-Jul-2007 13:08 -
----------------------------------
Clearsilver JavaJNI wrapper
by David Jeske
Distributed under the Neotonic ClearSilver License
----------------------------------
This is a Java Native Interface (JNI) wrapper for the ClearSilver
templating library. The files in this directory build into both
a clearsilver.jar file with Java classes, and a native library
libclearsilver-jni.so.
BUILDING
After building clearsilver, just type "make" twice. The first
time you build it builds the depend, and throw some random error,
I don't know why.
INSTALLING
You must put the native library into a standard library location
(i.e. like /lib), or make sure that Java can find it by using
the java command line directive:
-Djava.library.path=/somewhere/else
Then you must put the clearsilver.jar file into your java
CLASSPATH.
USING
See the example CSTest.java for an example of how to import
and use the clearsilver objects.
USING in a servlet
Since the most common usage of Clearsilver is in a servlet,
we've provided some examples of how to use it in the servlet/
directory.