Merry Christmas,
Wow, I finally connected to my data source! Now, I want to put the code
somewhere it will be executed only once, and save the DataSource object
where Actions, beans, etc. can get at it. That way, I don't have to perform
the lookup all the time.
Any suggestions on where to put the
, December 22, 2003 8:31 AM
Subject: Re: How find DataSource?
> I put mine in a static block of the base DAO. (static as in once per
> class, and all DAO's extend my base DAO).
>
>
> .V
>
>
> e-denton Java Programmer wrote:
>
> > Merry Christmas,
> >
>
Hi! Don't store any request related items in static or instance variables.
- Original Message -
From: "David Erickson" <[EMAIL PROTECTED]>
To: "Struts Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, December 22, 2003 1:02 PM
Subject: Example of a non-threadsafe Action?
> Hey I have been
e
> - Original Message -
> From: "Vic Cekvenich" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 22, 2003 9:31 AM
> Subject: Re: How find DataSource?
>
>
> > I put mine in a static block of the base DAO. (static as in once
Sorry to bother you with an easy question, but I can't find the answer.
I want to iterate over Category_VO[] which is stored in a session attribute.
I read that it can be done, but I can't find an example for raw arrays.
Here's what I have (which probably doesn't even make sense):
Thanks!
"request" />
>
> may do what you want.. Depends on what methods you've got in there..
>
> Cheers Mark
>
>
> On 24 Dec 2003, at 18:23, e-denton Java Programmer wrote:
>
> > Sorry to bother you with an easy question, but I can't find the answer.
&g
I's iteratin'! Thanks for all the help.
- Original Message -
From: "Daniel Lipofsky" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "e-denton
Java Programmer" <[EMAIL PROTECTED]>
Sent: Wednesday, Dec
Hi,
I am trying to test for the presence of a request attribute called "PCAT".
This works:
if (request.getAttribute ("PCAT") != null)
This doesn't work:
What Struts logic tag would work?
Thanks,
Will
-
To unsubscribe,
Hi,
I want to access a resource bundle (key=PORTAL_RESOURCES) from an ActionForm
to pull out display names for error messages (ActionError). I can't see how
to access the resource bundle and pull out the strings I want.
Thanks for your help.
Will
---
quot; + mrs);
I get:
PortalResources: null
Thanks, Will
- Original Message -
From: "Matthias Wessendorf" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>;
"'e-denton Java Programmer'" <[EMAIL PROTECT
L PROTECTED]
Sent: Wednesday, January 07, 2004 9:50 AM
To: 'Struts Users Mailing List'; 'e-denton Java Programmer'
Subject: RE: Resources from ActionForm
hi,
in an actionForm.validate():
MessageResources res =
(MessageResources) request.getAttribute(GLOBALS.MESSAGES_KEY); /
Hi,
How can you determine from within an Action:
1. What the calling .jsp page is
2. What the calling ActionMapping is
Thanks.
Will
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PR
Yep, they are called application modules. You define multiple struts-configs
in the web.xml.
This will get you started:
http://www.onjava.com/pub/a/onjava/2002/10/30/jakarta.html?page=2
Will
- Original Message -
From: "Ramadoss Chinnakuzhandai" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]
First, your class name should begin with a capital letter by convention. The
error is saying that no constructor an be found that matches "myABC
(..)". So, be sure there is such a constructor.
- Original Message -
From: "lixin chu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Mo
14 matches
Mail list logo