I'm not sure if ResourceBundle is what you'll want. So here are a few
more things to look at, just in case.
java.util.Properties has a load method that can take in an InputStream
javax.servlet.ServletContext has a getResouceAsStream method
which will get you the properties file ( from web app
you want to take a look at the
getServletContext().getResource*
methods. These methods are implemented by the Servlet Container to allow
the servlet to access resources where ever they happend to be.. either
in a file, in a WAR file, in a database, however the container wants to
maintain it..
Hmm, interesting..
I did have a similar issue with an Oracle driver a while back. Yes, the
Debugging helped alot. So I was driven to doing a System.gc(); after
and/or before every statement... :)
I think discovered this, assuming that all of that io and String creation
forced a gc... and it se
hi.
I am having issues with relative urls inside of the login-form page.
I'm wondering what the expected behavior is, and if other expect tomcat to
work differently.. below is an attempt at describing what's going on.
The problem is that the base url changes depending on the resource that
w
the include directive is at page translation, but it's the page source...
in pseudo jsp :)
A:
HI
B:
HI
C:
C becomes:
HI
requestdispatcher( B ).include()
and that is what is executed..
thus both getDate() calls are made are request time..
fern
On Thu, 8 Mar 2001, Paul J Deitel wrote
I'm confused. I have Realm authentication set-up. I haven't heard about
the Authenticator API? Is that configurable from the server.xml as well??
fern
> You would need to sublcass whichever authenticator class you are using
> (such as
> org.apache.catalina.authenticator.FormAuthenticator) an
I know you asked for Vector, but if you could use the Collection classes (
Java2, java.util.Collection, java.util.List, etc ), you can look at
java.util.Collections for some sorting methods
though it's not quicksort, they claim n log(n) ..
fern
ps - no need to respond to this..
On Fri, 2
On Fri, 2 Mar 2001, Craig R. McClanahan wrote:
> Fernando Padilla wrote:
> >
> > Again, I'm trying to bridge the gap between the classloader used by the
> > server and the classloader used by the web app. So that I can cast/use an
> > object from one classl
I have a MyRealm class to lock down my webapp.
That works fine. I have the jar file with the classes in
$TOMCAT_HOME/server and within $WEB_APP/WEB_INF/lib.
The Web App needs to gain access to the username/password given to the
Realm ( right now I store it in the MyPrincipal class ), to be ab
OK. I apologize, i must have a 3.1.
So how could we get this behavior with 4.x?
:) thanx
fern
On Tue, 27 Feb 2001, Ignacio J. Ortega wrote:
> > hey, I've heard this before, but have never found this
> > StaticInterceptor
> > in server.xml. I just tried to look for it in tomcat 4.x and
> >
Stefan,
The web.xml file is completely defined as part of the Servlet 2.2
Specification, when it defines Web Applications. Go there for the official
reference.
On Tue, 27 Feb 2001, Stefán F. Stefánsson wrote:
> Hello.
>
> I was wondering if anyone knows if the element in web.xml is not
> wor
On Tue, 27 Feb 2001, Chris Haynes wrote:
> Stefan,
>
> You can turn off the generation of indexes by setting the argument
> suppress="true"
> in the StaticInterceptor entry in server.xml.
>
hey, I've heard this before, but have never found this StaticInterceptor
in server.xml. I just tried to
u need
> for the plugins to work.
> I have not been looking at this much so if someone could enlight my on the
> subject i could check.
>
> /Peter
> - Original Message -
> From: "Fernando Padilla" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]&g
Tomcat 3.x uses Interceptors and thus the SecurityCheck.
Tomcat 4.x uses Generalized Security handling code with pluggable Realm
classes ( realms are access points into user authentication, authorization
information ). Realms are pluggable under the conf/server.xml file.
There is a SimpleRealm
I am unknowledgable to the Servlet 2.3 specification, so I would like
pointers to using Tomcat with "Filter"s. If it is as simple as go read
the spec, then just ignore this.
Currently, my Web Application Architecture has JSP pages which the first
thing they do is call a helper class to pre-hand
gt; Dom
>
>
> - Original Message -
> From: "Fernando Padilla" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; "Jonathan Asbell" <[EMAIL PROTECTED]>
> Sent: Tuesday, February 20, 2001 4:34 PM
> Subject: Re: *** Referring to a file or a d
I will have to further ask, how about content referenced from those
pages? Such as images.
Is there an easy way to say secure everything, except these directories?
Is there a special role, "GUEST" or "ANONYMOUS" which we can assign the
images directory... etc etc?
fern
On Tue, 20 Feb 2001, R
It all depends on what your code is. I'm assuming you're just using new
File( relpath ), which should be relative to the user.dir system property,
which should be Tomcat bin I suppose ( this is all educated guessing i
tell you. ).
Does knowing that help you? Your relative path should then be
"
Yes, it was a stupid question. Tomcat 4 does indeed have
JDBCRealm. Sorry guys.
fern
On Thu, 15 Feb 2001, Fernando Padilla wrote:
>
> I've been looking at the code in Tomcat 3.2, there is no JDBCRealm
> present. Do I need to be looking at Tomcat 4.0? Apologies for the stu
I've been looking at the code in Tomcat 3.2, there is no JDBCRealm
present. Do I need to be looking at Tomcat 4.0? Apologies for the stupid
question.
fern
On Thu, 15 Feb 2001, Christian Rauh wrote:
> Dear People,
>
> I am totally confused on how to proceed with the user authentication in
>
I believe so.
The story is that the Web App Spec states that it will load .jar files,
not .zip files from the Web App lib directory ( even though they're
essentially the same ). People here have suggested to simple rename the
file from calsses12.zip to classes12.jar. You could also unpack it a
This might seem as pestering, but how do we setup user and role
definitions for tomcat to authenticate against? I tried looking through
the Tomcat Documentation, but maybe I didn't try hard enough.
fernando
On Thu, 8 Feb 2001, Craig R. McClanahan wrote:
>
>
> Johnson Lim wrote:
>
> > Hello,
Yes that is part of the J2EE Web Application Spec.
On Tue, 6 Feb 2001, Carles Pi-Sunyer wrote:
> To make this work for me, I've had to change the name of the file from
> class111.zip to classes111.jar. It appears that only files with the .jar
> extension are automatically picked up and added t
I was wondering about that.
I just finished reading the Servlet Specification and they made no
mention of Init Params under the servlet element. And I wondered how
they interacted with Init Params at the context level.
You're saying that the servlet init params completely over shadow the
contex
hi. I am definitely interested in this topic so plese speak up.
I am currently trying to define standard project structures for my company
and will be dealing with these same topics very soon.
fern
fernando padilla
-
To
25 matches
Mail list logo