RE: Accessing resource in WEB-INF outside servlet

2004-11-08 Thread David Evans
Thanks again for the help, this approach is very clean, and i'll be using it. dave On Mon, 2004-11-08 at 10:15, Shapira, Yoav wrote: > Hi, > >So the intialization of this sington datasource provider occurs the > >first time the class is called? and from then on out there's only one > >instance o

RE: Accessing resource in WEB-INF outside servlet

2004-11-08 Thread David Evans
On Mon, 2004-11-08 at 09:35, Shapira, Yoav wrote: > Hi, > > >so how do you handle this? do you pass in the connection info to every > >DAO method, like this: > >public static Book getBook(String connection, String bookId) > >public static void updateBook(String connection, Book book) > > > >that s

RE: Accessing resource in WEB-INF outside servlet

2004-11-08 Thread David Evans
Ok, thanks i will look into the getResource configuration method, it sounds like that would subsitute for the JNDI lookup cleanly. So one last thing, if you've got the time. You said: "Having each Bean get its own connection path itself is not clean, but it's your design, so it's up to you." so ho

RE: Accessing resource in WEB-INF outside servlet

2004-11-08 Thread David Evans
Thanks for the reply. So the next question of course is, what is a better approach? I understand idea of using putting an object in the ServletContext during application initialization, but that leads to other problems. Well, to be specific, heres the problem i have with that in my application:

RE: Accessing resource in WEB-INF outside servlet

2004-11-08 Thread David Evans
Is using JNDI to access a file like this a reasonable approach? I just started using JNDI to name my database connections via a connection pool. And when i saw the simplicity of accessing the JNDI context within my java classes, i got to thinking that i should use it to access many of my applicatio

RE: Limit size of catalina.out ?

2004-02-28 Thread David Evans
Wendy, I set the swallowOutput to true on one of my contexts, and now most of my logging is going to the automatically rotated context log files. the only thing showing up in my catalina.out is the startup and shutdown messages. So if you do this it may eliminate your need to deal with catalina.ou

RE: Limit size of catalina.out ?

2004-02-28 Thread David Evans
It sends the System.err and System.out to the context logger, instead of catalina.out. dave On Fri, 2004-02-27 at 18:08, Norris Shelton wrote: > I searched the internet for it, but could not get a clear > definition for it. Does it ignore System.out and System.err > from the context? > > --- "

Re: Alternatives to J2EE Authentication

2004-02-26 Thread David Evans
Having just researched this, here's what i found. Using a javax.servlet.Filter works very well. As you say, You check the session for an attribute value that indicates authentication. in its absence you use a RequestDispatcher to forward to a login servlet which checks for four cases: 1. no reque

RE: Logging

2004-02-20 Thread David Evans
So is log4j the "industry standard" for logging in tomcat apps? Is it what you use? dave On Fri, 2004-02-20 at 13:54, Shapira, Yoav wrote: > Howdy, > > >No, I am doing it through log4j. But would it interested in knowing > anyone > >using J2SE 1.5.0 beta logging API. Heard it's the same as lo

Logging

2004-02-20 Thread David Evans
Hello All, I am trying to get ideas on logging, general configurations, best practices, etc. Currently i use the default tomcat configuration which sends all catalina logs to $CATALINA_HOME/logs/catalina_log..txt and sends all System.err.println() and System.out.println() calls to $CATALINA_HO

Re: Upgrading Java Version

2004-01-20 Thread David Evans
On Tue, 2004-01-20 at 10:58, Richard S. Huntrods wrote: > David, > > First - for your specific versions, all you have to do is upgrade java. > Once that works, you're in business - no changes to Tomcat. This is > because the changes between JDK 1.4.0_01 and 1.4.2_01 should not have an > impact

Re: upgrading java version

2004-01-20 Thread David Evans
> From: jerome moliere <[EMAIL PROTECTED]> > To: David Evans <[EMAIL PROTECTED]> > Subject: Re: upgrading java version > Date: 20 Jan 2004 14:48:50 +0100 > > > Thanks for the reply. I understand what you're saying about the > > symbolic links, but i&#x

upgrading java version

2004-01-20 Thread David Evans
Hello all, I looked through the list archives and the jakarta docs, but didn't find any info. What changes, if any, do i have to make to my tomcat configuration if i want to upgrade my java SDK. I would like to do this because of the verisign root certificate expiration. my versions: j2sdk1.4.

Re: http to https how ?

2004-01-12 Thread David Evans
sorry, forget the ? after the url, that is: if (! request.isSecure()) { response.sendRedirect("https://www.yourdomain.org/your.jsp";); } On Mon, 2004-01-12 at 23:13, David Evans wrote: > I do this: > > if (! request.isSecure()) { >response.sendRedirect("

Re: http to https how ?

2004-01-12 Thread David Evans
I do this: if (! request.isSecure()) { response.sendRedirect("https://www.yourdomain.org/your.jsp?";); } dave On Mon, 2004-01-12 at 19:11, Mufaddal Khumri wrote: > Hi, > > Have a page First.jsp > > When a user comes to http://my.domain.com/First.jsp ... I would like to > redirect him or

Re: rtexprvalue ignored? - fixed

2003-12-18 Thread David Evans
On Thu, 2003-12-18 at 20:53, Josh G wrote: > At 11:47 AM 19/12/2003, you wrote: > >This is what i was telling you before, the attribute has to be either a > >expression or a constant, not both. so add the "_off.gif" part to the > >tmp variable before you put it in the tags attribute. > > > >like th

Re: rtexprvalue ignored?

2003-12-18 Thread David Evans
This is what i was telling you before, the attribute has to be either a expression or a constant, not both. so add the "_off.gif" part to the tmp variable before you put it in the tags attribute. like this: <% String temp = sectionNames[i] + "_off.gif"; %> thats what i've done before to fix the

Re: jsp.error.attribute.unterminated -- WTF?

2003-12-18 Thread David Evans
On Thu, 2003-12-18 at 01:31, Josh G wrote: > > Hi All, pulling out copious amounts of hair for this one... here's the code: > > <% > for (int i = 0; i < sectionNames.length; i++ ) { > %> > > <%= sectionNames[i] %>_off = new Image(); > <%= se

Re: servlet-mapping like mod_rewrite?

2003-12-10 Thread David Evans
req.getRequestDispatcher("path/To/servlet") On Wed, 2003-12-10 at 10:46, Marten Lehmann wrote: > Hello, > > > What about using one centralized servlet that parses > > req.getPathInfo(), sets the language as request attribute > > and forwards to the real servlet(s) ? > > how is a request-forwar

Re: [OT}RE: directive.include problem

2003-12-08 Thread David Evans
On Mon, 2003-12-08 at 11:53, Atreya Basu wrote: > The only problem with the include directive is that it actually outputs > the result of a jsp rather than just the text. What I want to do is have > some content in a another file, have the two file put together then > compiled. I don't think th

How to patch a class file

2003-12-05 Thread David Evans
Hello, I have a problem with tomcat and Ie 5.0 on a Mac. I have found the answer to my problem here: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6983 its says i should: *** The file to patch is src/catalina/src/share/org/apache/catalina/util/CookieTools.java Jay