could u please give me a example how to use this method?
everytime i try, i get the errormessage
non-static method javax.servlet.ServletContext.getResource can not be
referred from static context
and theres still another question:
how to adress a special variable in the retrieved file, for example the url
of the databaseserver or user and pw?
thx
Christian Haering
_______________________________
Christian H�ring
Siemens AG
A&D AS OIL B16
Werner von Siemens Str. 50
92224 Amberg
mailto:[EMAIL PROTECTED]
Tel: +49 9621 80 3127
Fax: +49 9621 80 2274
> -----Urspr�ngliche Nachricht-----
> Von: horwat [SMTP:[EMAIL PROTECTED]]
> Gesendet am: Mittwoch, 12. September 2001 20:47
> An: [EMAIL PROTECTED]
> Betreff: Re: read variable out of web.xml
>
> The application's WEB-INF/ directory is visible to your application code,
> but not to browser clients, so there is no way users can directly read the
> data in any file in this directory. You can access your application
> configuration information by retrieving a resource URL using
> javax.servlet.ServletContext.getResource() method.
>
> Justy
>
> ----- Original Message -----
> From: "Haering Christian" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, September 12, 2001 5:34 AM
> Subject: read variable out of web.xml
>
>
> > I'd like to craete a jsp with databaseaccess and have - due to security
> > reasons - to put the login parameters and serverlocations in a special
> file.
> > Can I therefor use the web.xml file, which JBuilder 5 is automatically
> > creating? If yes, how do I read out the data?
> >
> > thx alot
> >
> > Christian Haering
> >
> > _______________________________
> > Christian H�ring
> > Siemens AG
> > A&D AS OIL B16
> > Werner von Siemens Str. 50
> > 92224 Amberg
> > mailto:[EMAIL PROTECTED]
> > Tel: +49 9621 80 3127
> > Fax: +49 9621 80 2274
> >
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name
> http://www.jguru.com/jguru/faq/faqpage.jsp?name
> >
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
==========================================================================To
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets