Andrew Hill [EMAIL PROTECTED] on 07/30/2003 10:49:19 PM
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject: RE: [OT] Best super-class for context handling.
snip
InputStream is =
servlet.getServletContext
21:25
To: Struts Users Mailing List
Subject: RE: [OT] Best super-class for context handling.
getResourceAsStream() is an instance method of java.lang.Class, so as long
as you stick with that, you're not tied to any particular deployment
environment.
Ian
Ian D. Stewart
Open Systems Engineer II
There shouldn't be a need to pass the ServletContext around. Just call
servlet.getServletContext() within your action.
Ian
Ian D. Stewart
Open Systems Engineer II
Enterprise Midrange - Bank One Infrastructure Operations
[EMAIL PROTECTED]
(614) 213-6100
Simon Kelly [EMAIL PROTECTED] on
: [OT] Best super-class for context handling.
There shouldn't be a need to pass the ServletContext around. Just call
servlet.getServletContext() within your action.
Ian
Ian D. Stewart
Open Systems Engineer II
Enterprise Midrange - Bank One Infrastructure Operations
[EMAIL PROTECTED
[EMAIL PROTECTED] on 07/30/2003 08:49:57 AM
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject: Re: [OT] Best super-class for context handling.
It's not for the actions (sorry I should have stated it in my original
List [EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 3:16 PM
Subject: Re: [OT] Best super-class for context handling.
Ideally your business objects shouldn't know anything about the deployment
environment. Not only is this good design, but it also allows you to
migrate between (or support
]
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject: Re: [OT] Best super-class for context handling.
Ah, right.
Not sure whether that's what I'm after.
Here's a better explination.
I am using files that are contained within the /WEB-INF/ dir within the web
application to hold information
That's great.
Thanks for your help.
Cheers
Simon.
- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 4:09 PM
Subject: Re: [OT] Best super-class for context handling.
Ok. I think I see what you're trying
On Wed, 30 Jul 2003, Simon Kelly wrote:
Date: Wed, 30 Jul 2003 15:47:55 +0200
From: Simon Kelly [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: [OT] Best super-class for context handling.
Ah, right
-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Thursday, 31 July 2003 00:34
To: Struts Users Mailing List
Subject: Re: [OT] Best super-class for context handling.
On Wed, 30 Jul 2003, Simon Kelly wrote:
Date: Wed, 30 Jul 2003 15:47:55 +0200
From: Simon Kelly [EMAIL PROTECTED
10 matches
Mail list logo