Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.
(Answer) (Category) Java Apache Project : (Category) Trash :
JServSSI configuration
I am running Apache (1.3.3) on Linux (RH 5.1). I have found several things I had to change from the default or instructions in the book to get JServSSI to work:
1) Make sure the class name in the ApJServAction .jhtml ... line in the master properties file (jserv.properties in my case) is org.apache.jservssi.JServSSI. The last two items in the default were incorrect.
2) I can either include the ApacheJServSSI.jar in my classpath, or I can point to it in a repositories statement in my zone properties file for the zone indicated by the ApJServAction line in the master properties file. Either (or both) seem to work.
3) When passing parameters from the called servlet to the .jhtml file, put the parameters in quotes in the .jhtml file, like so:
  <PARAM NAME="name" VALUE="doug">
otherwise I get a NullPointerException when I call GetParameter.
4) I also tried putting the "jar" file with JServSSI in it into my classpath, and referencing it in jserv.properties like this: ApJServAction .jhtml org.apache.jservssi.JServSSI - without the zone, and it would not work. I had to use a zone.

[Append to This Answer]
dougDOTpeckATnsmgDOTseagatesoftwareDOTcom
Previous: (Answer) New Item
Next: (Answer) New Item
This document is: http://java.apache.org/faq/?file=127
[Search] [Appearance] [Show Expert Edit Commands]
This is a Faq-O-Matic 2.709.
Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.