Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Need help with OAS and Servlet Initialization
Have a look at Note:93734.1 on Metalink.
As taken from a forum on MetaLink:
From: Kirk Condon 09-Dec-99 16:40
Subject: Re : getInitParameter fails to work in servlet
I developed a workaround by setting a SYSTEM_PROPERTY (as in init_userid=abcdef.
This is picked up in the servlet via:
Properties p = System.getProperties();
init_userid = p.getProperty("init_userid");
Scott Bortman <scott_at_csihq.com> wrote in message
news:se4s90o3ead133_at_corp.supernews.com...
> Hello,
>
> I have the following setup:
>
> Oracle Application Server 4.0.8
> Oracle 8 Enterprise Edition (8.0.4.0.0)
> Solaris 2.5
>
> I am having trouble getting my Servlets to read
> their parameters using getInitParameter(). The
> servlets work fine when tested with Sun's JSWDK2.0.
>
> The properties are of the form:
>
> servlet.<servlet name>.initArgs=prop1=value,prop2=value
>
> as stated in the JServlet developer's guide. I know that I
> have enter this onto the Java Configuration form, but how?
> The developer's guide refers to the adminstrator's guide which
> shows a blank form!
>
> Also, the format that is explicitly stated in developer's is JSWDK2.0
> but the documentation says that OAS supports JSWDK2.1 which uses
> a different format. Is it a typo? Which is correct?
>
> If anyone has the answers to these questions, please respond.
>
> Thanks in advance,
> scott
>
>
>
Received on Wed Mar 29 2000 - 15:47:56 CST