- From: Ray Allis <ray.allis@boeing.com>
- Date: Mon, 9 Aug 1999 17:58:12 -0400 (EDT)
- To: "Burrell, David (Automation)" <BurrelD@tjm.com>, Jigsaw List <www-jigsaw@w3.org>
- Message-Id: <37AF4F15.96BA9421@boeing.com>
"Burrell, David (Automation)" wrote:
> How do I get the Jigsaw to work with the JSP servlets(JSWDK or GNUJSP) ?
With Yves' help -- first, you need this...
> First, SUN's servlet engine uses given PATH to the servlet to read the jsp
> file, it means that you should not use ServletMapperFrame on top of a
> FileResource, but directly create the resource as a servlet.
> So I created a jspindexer with the following settings:
>
> jspindexer
> |
> -- directories
> | |
> | -- *default* (org.w3c.jigsaw.resources.PassDirectory)
> | (ServletDirectoryFrame)
> |
> -- extensions
> |
> -- jsp (org.w3c.jigsaw.servlet.ServletWrapper) (it create its frame
> (ServletWrapperFrame) directly)
>
> the servlet class is com.sun.jsp.runtime.JspServlet
> and "scratchdir=<mypath>/Jigsaw/Jigsaw/compiledPage"
> in the servler parameters.
>
> I set the dir to have jspindexer as the indexer, and it worked :) (Of
> course i you do it afterward, you should remove all the resources behind
> and recreate them, as the directories should have a ServletDirectoryFrame)
> Regards,
>
>
> /\ - Yves Lafon - World Wide Web Consortium -
> /\ / \ Architecture Domain - Jigsaw Activity Leader
> / \ \/\
> / \ / \ http://www.w3.org/People/Lafon - ylafon@w3.org
--
I made a WWW/jsp directory to keep them separate -- may not be necessary.
Then, I add the paths to the javac compiler and JSWDK .jar files to Jigsaw
start script,
(servlet.jar etc. can go in jdk1.2.2/jre/lib/ext). The /beans path is just
because I was too
lazy to move all the demo stuff. ;)
174 memes.sea.boeing.com /export/home/ray/Jigsaw/scripts:more jigsaw.sh
#!/bin/sh
# Jigsaw
# $Id$
# Jigsaw launcher example
# Adding Jigsaw into your class path (using team version):
JIGSAW_HOME=`pwd | sed 's/scripts//'`
export JIGSAW_HOME
LD_LIBRARY_PATH=${JIGSAW_HOME}/lib
export LD_LIBRARY_PATH
CLASSPATH=${JIGSAW_HOME}/classes/jigsaw.zip:\
/site/jdk1.2.2/lib/tools.jar:\
/site/jswdk-1.0-ea/lib/jspengine.jar:\
/site/jswdk-1.0-ea/lib/jsp.jar:\
/site/jswdk-1.0-ea/examples/WEB-INF/jsp/beans
export CLASSPATH
java -Xms4m -Xmx128m org.w3c.jigsaw.Main -root ${JIGSAW_HOME}/Jigsaw $*
# done.
175 memes.sea.boeing.com /export/home/ray/Jigsaw/scripts:
--
I -think- that's all. ;)
Ray Allis
Received on Monday, 9 August 1999 18:13:35 UTC