Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Apache/Jserv, web.xml and init parameters

Re: Apache/Jserv, web.xml and init parameters

From: Vladimir M. Zakharychev <bob_at_dpsp-yes.com>
Date: Mon, 30 Dec 2002 21:22:47 +0300
Message-ID: <auq377$ogl$1@babylon.agtel.net>


It's all in the zone.properties. You define servlet zones in jserv.properties, then for each zone you define servlets and their startup parameters in zone.properties. But you do it traditional parameter=value way, not the new <parameter>value</parameter> XMLized way (which, by the way, adds to the size of the configuration file significantly while serving the same purpose and adding no real value aside from document format validation - but you are still free to specify invalid parameters within a perfectly valid (from XML's point of view) parameter specification tag and XML parser will chew through them happily. :)

--
Vladimir Zakharychev (bob@dpsp-yes.com)                http://www.dpsp-yes.com
Dynamic PSP(tm) - the first true RAD toolkit for Oracle-based internet applications.
All opinions are mine and do not necessarily go in line with those of my employer.


"John" <jbradshaw777_at_yahoo.com> wrote in message
news:f2f59d82.0212271017.30f3e08e_at_posting.google.com...

> Thanks. Not sure about this though. A web.xml specifies init
> parameters as in the following sample. I did not see anything in the
> jserv.properties that resembles this format. Maybe I should just move
> on to Tomcat, seems like that's what everybody is using. I used Jserv
> simply because it is already installed with ORACLE.
>
> - John
>
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
>
> <!DOCTYPE web-app
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
>
> <web-app>
> <servlet>
> <servlet-name>
> ShowMsg
> </servlet-name>
>
> <servlet-class>
> coreservlets.ShowMessage
> </servlet-class>
>
> <init-param>
> <param-name>
> message
> </param-name>
> <param-value>
> Shibboleth
> </param-value>
> </init-param>
>
> <init-param>
> <param-name>
> repeats
> </param-name>
> <param-value>
> 5
> </param-value>
> </init-param>
> </servlet>
>
> <taglib>
> <taglib-uri>
> /tags
> </taglib-uri>
> <taglib-location>
> /WEB-INF/tags/HelloTagLib.tld
> </taglib-location>
> </taglib>
> </web-app>
>
> "Vladimir M. Zakharychev" <bob_at_dpsp-yes.com> wrote in message
news:<auh35a$r97$1_at_babylon.agtel.net>...
> > $ORACLE_HOME/Apache/Jserv/conf/jserv.properties and
> > .../Jserv/servlets/zone.properties?
> >
> > --
> > Vladimir Zakharychev (bob@dpsp-yes.com) http://www.dpsp-yes.com
> > Dynamic PSP(tm) - the first true RAD toolkit for Oracle-based internet applications.
> > All opinions are mine and do not necessarily go in line with those of my employer.
> >
> >
> > "John" <jbradshaw777_at_yahoo.com> wrote in message
> > news:f2f59d82.0212241440.91ad04e_at_posting.google.com...
> > > Hi,
> > >
> > > Anybody using Apache Jserv that comes with ORACLE 9i? How do I get the
> > > init parameters with getInitParameter? Supposely you put the init
> > > parameters in web.xml in a servlet 2.2 environment. Am I correct in
> > > saying that you can not use web.xml with Jserv since it implements
> > > servlet 2.0 specs? If so, where do I get the init parameters from? Or
> > > is it better not to mess with Jserv at all and go to a 2.2 environment
> > > like Tomcat or OC4J? Thanks!
> > >
> > > - John
Received on Mon Dec 30 2002 - 12:22:47 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US