Horst Gaussmann wrote:
>
> How can i map a file extension ( for example .xml ) to an servlet
> using JServ.
> I have to do so because i want to use cocoon.
In httpd.conf, use:
ApJServAction .xml /servlets/cocoon
this assumes you have a "/servlets" mount point defined in httpd.conf,
something like
ApJServMount /servlets /root
which specifies a root" zone, for example in jserv.properties
zones=root
root.properties=/home/damian/jserv/conf/root.properties
and in your corresponding root.properties you define cocoon, for
example:
repositories=/home/damian/cocoon/bin/cocoon.jar,... etc
...and an alias...
servlet.cocoon.code=org.apache.cocoon.Cocoon
...and a properties file...
servlet.cocoon.initArgs=properties=/home/damian/cocoon/conf/cocoon.properties
Damian
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]