JSP Engines

# JSP and Jigsaw
Using GnuJsp, Resin, Jakarta, ...

Jigsaw Home / Documentation Overview / Tutorials
JSP Engines

GnuJsp
Jakarta
Resin

JavaServer Pages (JSP) are supported in Jigsaw, by using one of the JSP Engines availables. We describe here how to configure Jigsaw to use those engines

First of all, download your favorite JSP Engine (see the links on the left) and read its installation procedure. You will probably have to update your CLASSPATH. Please check it before going to the next step and don't forget to restart Jigsaw after modifying the CLASSPATH.

Now, configure the JSP Engine servlet, you'll probably need to configure some parameters. For more details on servlet installation read the servlet documentation, and the documentation of your JSP engine.

The next thing to do is to map jsp files to the JSP servlet, a request coming on a jsp file will be redirected to the JSP Servlet. For that we use a ServletMapperFrame.

Now setup the indexer (eg: the default indexer). Under the "extensions" node add the "jsp" extension using a FileResource associated to a ServletMapperFrame. Then, in the ServletMapperFrame, set the "servlet-url" field to the JSP Servlet URI (eg: /servlet/jsp). (Note, this will work with Jigsaw 2.0.2 and up)

Don't forget to save the configuration, and enjoy JSP!

For more informations about JSP, here is a JSP Syntax Reference.