Re: How find DataSource?

2003-12-22 Thread e-denton Java Programmer
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

Re: How find DataSource?

2003-12-22 Thread e-denton Java Programmer
, 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, > > >

Re: Example of a non-threadsafe Action?

2003-12-22 Thread e-denton Java Programmer
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

Re: How find DataSource?

2003-12-22 Thread e-denton Java Programmer
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

Easy question: iterate

2003-12-24 Thread e-denton Java Programmer
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!

Re: Easy question: iterate

2003-12-24 Thread e-denton Java Programmer
"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

Re: Easy question: iterate

2003-12-24 Thread e-denton Java Programmer
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

How test for attribute?

2003-12-27 Thread e-denton Java Programmer
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,

Resources from ActionForm

2004-01-07 Thread e-denton Java Programmer
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 ---

Re: Resources from ActionForm

2004-01-07 Thread e-denton Java Programmer
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

Re: Resources from ActionForm

2004-01-07 Thread e-denton Java Programmer
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); /

How find out calling page or mapping?

2004-01-07 Thread e-denton Java Programmer
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

Re: Multiple config files under single application

2004-01-14 Thread e-denton Java Programmer
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]

Re: newbie question : cannot resolve symbol when compiling an Action class

2004-01-19 Thread e-denton Java Programmer
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