]
Sent: Tuesday, September 10, 2002 8:14 PM
Subject: Re: global.jsa
Hi!
I saw this post of yours in the tomcat list and tried myself. For some
reason it doesn works... you can help me? I don't know what to do, it
works for application start/stop, but not for session.
On Mon, 2002-09-09
context. I'd
personally make two classes, for readability and simplicity though!
- Chris
- Original Message -
From: Felipe Schnack [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 10, 2002 8:14 PM
Subject: Re: global.jsa
Hi!
I saw this post of yours
Hello,
I've seen a few answers to your question suggesting that you use a servlet
that loads on startup. I have another suggestion that you may prefer to
emulate global.asa: implement ServletContextListener and
HttpSessionActivationListener.
javax.servlet.ServletContextListener
...sends
load-on-startup in your WEB-INF/web.xml is the element. Have a look in the
servlet specifications for a fuller description.
Hamish
-Original Message-
From: neal [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 8:43 PM
To: Tomcat Users List
Subject: RE: global.jsa
]]
Sent: Tuesday, September 03, 2002 12:36 PM
To: Tomcat Users List
Subject: RE: global.jsa
Why don't you look at a struts application? They exist, and all
applications with Tomcat do this.
At 11:42 AM 9/3/2002 -0700, you wrote:
Interesting. I was aware of the application scope option which
-Original Message-
From: Barney Hamish [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 2:14 AM
To: 'Tomcat Users List'
Subject: RE: global.jsa
Why don't you just declare the object you want to use as having application
scope? That way the first time you use
in productivity) analysis doesn't seem to be pointing me in
that direction right now. :)
-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 12:36 PM
To: Tomcat Users List
Subject: RE: global.jsa
Why don't you look at a struts application? They exist
To: Tomcat Users List
Subject: RE: global.jsa
Why don't you look at a struts application? They exist, and all
applications with Tomcat do this.
At 11:42 AM 9/3/2002 -0700, you wrote:
Interesting. I was aware of the application scope option which is cool ...
but not exactly what I was looking
04, 2002 8:21 AM
To: Tomcat Users List
Subject: RE: global.jsa - Struts
My opinion about development: you really should use only tags in JSP,
and never write java code in a jsp file. You should always separate
design from implementation.
About Struts: yeah, we need lots of taglibs to avoid
:
Subject: RE: global.jsa - Struts
09/04/02
Struts is *the* de-facto standard MVC framework. The problem is that
there is a slight bit of initial learning curve, and it's hard to see
the benefit until *after* you've used it (my opinion). You really
should give it a go -- it's tons better than having to implement
something analagous
into an XML or props file. This is pretty much what you're doing too?
Neal
-Original Message-
From: Felipe Schnack [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 04, 2002 8:21 AM
To: Tomcat Users List
Subject: RE: global.jsa - Struts
My opinion about development: you
neal wrote:
Micael,
You've mentioned Struts a couple of times and I admit I am curious.
I did look into Struts but to be honost I wasn't all that impressed by what
(I think) I saw. It seemed like it was just offering a lot of lightweight
wrappers around the API. Case in point, the Cookie
Actually, I just checked p 43 ... its talking about the init() and detroy
methods() of a servlet. You sure that was 2nd edition? :)
Neal
-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 12:23 PM
To: Tomcat Users List
Subject: RE: global.jsa
You can use the WEB-INF/web.xml to similar effect or you can also declare
objects to have application scope, then you have a global object that you
can access anywhere.
Hamish
-Original Message-
From: neal [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 10:15 AM
To:
-
From: Barney Hamish [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 1:30 AM
To: 'Tomcat Users List'
Subject: RE: global.jsa
You can use the WEB-INF/web.xml to similar effect or you can also declare
objects to have application scope, then you have a global object that you
can
Message-
From: neal [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 10:56 AM
To: Tomcat Users List
Subject: RE: global.jsa
Thanks.
No global.jsa, eeh?
The web.xml is a good way to go if you have flat variables
that you want
placed into the application object
-Original Message-
From: neal [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 10:56 AM
To: Tomcat Users List
Subject: RE: global.jsa
Thanks.
No global.jsa, eeh?
The web.xml is a good way to go if you have flat variables
that you want
placed into the application object
there? Can you specify scope of those objects or will it presume
application scope?
THanks.
Neal
-Original Message-
From: Barney Hamish [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 1:30 AM
To: 'Tomcat Users List'
Subject: RE: global.jsa
You can use the WEB-INF/web.xml
-
From: Barney Hamish [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 2:14 AM
To: 'Tomcat Users List'
Subject: RE: global.jsa
Why don't you just declare the object you want to use as having application
scope? That way the first time you use it it will be initialized?
Alternatively
There is no Global.jsa in the spec , this is an Oracle extension to
spec, IMHO Servlet 2.3 spec adresses some the remaining issues as
application evens, all the other things in Global.jsa are easily
replicable using the standard, things Session events and global objects
..
References:
---
-Original Message-
From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]]
Sent: January 24, 2001 11:09 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Global.jsa
There is no Global.jsa in the spec , this is an Oracle extension to
spec, IMHO Servlet 2.3 spec
22 matches
Mail list logo