RE: [OT] Dealer Locator / Zip Code Lookup

2004-03-18 Thread Jerry Jalenak
Basically, yes (I think).  What I've seen are site like homedepot.com where
you can pull up a store locator, enter a zip code, and it will return all of
the stores within a set radius around the zip code.  I've foud a commercial
product called "Bullseye ZipCode Locator" that is java based (about $1000
for the lite version), but like I said, I'm cheap

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Martin Gainty [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 18, 2004 12:33 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] Dealer Locator / Zip Code Lookup
> 
> 
> The problem is that ZipCode roughly corresponds to GPS Coordinates
> The algorithm you will need to deploy would be to locate a 
> dealer by either
> Zip Code
> GPS Coordinates
> After you have extracted selected record items from the DB 
> you can then
> populate a Tag such as selectmany_listbox
> Is this what you are looking for?
> Martin Gainty
> - Original Message -
> From: "Jerry Jalenak" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, March 18, 2004 11:51 AM
> Subject: [OT] Dealer Locator / Zip Code Lookup
> 
> 
> > All,
> >
> > i'm looking for (hopefully) an open-source product that 
> will allow me to
> do
> > a 'dealer locator' type of function - one where I enter a 
> zip code and a
> > radius, and I get back a list of 'dealer' within that 
> radius.  If there
> > isn't an open-source product (yes, I'm cheap), can anyone 
> recommend a
> > commercial product?
> >
> > Thanks.
> >
> > Jerry Jalenak
> > Development Manager, Web Publishing
> > LabOne, Inc.
> > 10101 Renner Blvd.
> > Lenexa, KS  66219
> > (913) 577-1496
> >
> > [EMAIL PROTECTED]
> >
> >
> > This transmission (and any information attached to it) may 
> be confidential
> and
> > is intended solely for the use of the individual or entity 
> to which it is
> > addressed. If you are not the intended recipient or the 
> person responsible
> for
> > delivering the transmission to the intended recipient, be 
> advised that you
> > have received this transmission in error and that any use, 
> dissemination,
> > forwarding, printing, or copying of this information is strictly
> prohibited.
> > If you have received this transmission in error, please 
> immediately notify
> > LabOne at the following email address:
> [EMAIL PROTECTED]
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] Dealer Locator / Zip Code Lookup

2004-03-18 Thread Jerry Jalenak
All,

i'm looking for (hopefully) an open-source product that will allow me to do
a 'dealer locator' type of function - one where I enter a zip code and a
radius, and I get back a list of 'dealer' within that radius.  If there
isn't an open-source product (yes, I'm cheap), can anyone recommend a
commercial product?  

Thanks.

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] JDBC-ODBC Driver Recommendation

2004-03-16 Thread Jerry Jalenak
Thanks!  I'll take a look at it...

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Smith, Darrin [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 16, 2004 3:48 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [OT] JDBC-ODBC Driver Recommendation
> 
> 
> I've used JTDS with success in the past.
> 
> http://jtds.sourceforge.net/
> 
> 
> 
> -Original Message-
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 16, 2004 3:42 PM
> To: '[EMAIL PROTECTED]'
> Subject: [OT] JDBC-ODBC Driver Recommendation
> 
> 
> All,
> 
> I find myself in need of an open-source JDBC-ODBC driver so I 
> can access a
> MS-SQLServer database from a Struts web app.  Can anyone 
> recommend a driver?
> 
> Thanks!
> 
> Jerry Jalenak
> Development Manager, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> 
> [EMAIL PROTECTED]
> 
> 
> This transmission (and any information attached to it) may be 
> confidential
> and
> is intended solely for the use of the individual or entity to 
> which it is
> addressed. If you are not the intended recipient or the 
> person responsible
> for
> delivering the transmission to the intended recipient, be 
> advised that you
> have received this transmission in error and that any use, 
> dissemination,
> forwarding, printing, or copying of this information is 
> strictly prohibited.
> If you have received this transmission in error, please 
> immediately notify
> LabOne at the following email address: 
> [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] JDBC-ODBC Driver Recommendation

2004-03-16 Thread Jerry Jalenak
All,

I find myself in need of an open-source JDBC-ODBC driver so I can access a
MS-SQLServer database from a Struts web app.  Can anyone recommend a driver?

Thanks!

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Best way to handle big search results..

2004-03-04 Thread Jerry Jalenak
Hasn't been a problem so far  8-)

When i first designed this system, I went with an approach to do my lookup
directly from the db.  Turned out that, with these large account clients,
the SQL call was coming back fairly quickly, but it was taking significant
time to run through the records and apply various filters that are available
to the user (date range, previously viewed, sub-set, etc.)  So I went back
to the drawing board, wrote this second servlet to maintain some in-memory
data structures (basically maps-in-maps), and dramatically sped up the whole
app.  The only remaining issue is this one - where I am returning a couple
of thousand accounts and several thousand detail records

I may have to end up re-negogitaing this one business requirement.

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Mark Lowe [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 04, 2004 11:21 AM
> To: Struts Users Mailing List
> Subject: Re: Best way to handle big search results..
> 
> 
> I think html rendering is the least of his worries :o)
> 
> I'm surprised you can get that many records into the application 
> context in the first place.
> 
> On 4 Mar 2004, at 18:14, Hookom, Jacob wrote:
> 
> > Yeah, stay away from tables within tables, they can be a 
> big slow up.
> >
> > -Original Message-
> > From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, March 04, 2004 11:13 AM
> > To: 'Struts Users Mailing List'
> > Subject: RE: Best way to handle big search results..
> >
> > But. I'm already doing paging.  Each independant 
> account table only
> > returns the first 10 detail records; everything is 
> available by paging
> > through the next 'n' pages.  For example, one of my clients 
> has access 
> > to
> > almost 8900 accounts.  Of these accounts, there are about 3500 with 
> > reported
> > data in the past 90 days.  In the past month alone, these 3500 
> > accounts have
> > almost 48000 detail records.  So I'm returning (probably 
> not all 3500
> > accounts, but a good majority of 'em) say 2000 tables, with 
> > potentially 10
> > detail records per table.  Each table has seven columns, so 
> just for 
> > the
> > tables I'm returning about 320,000 lines of html.  I'm 
> really starting 
> > to
> > think this is a client side rendering issue - the browser 
> simply can't
> > process the number of lines of html that I'm pushing it.
> >
> > Jerry Jalenak
> > Development Manager, Web Publishing
> > LabOne, Inc.
> > 10101 Renner Blvd.
> > Lenexa, KS  66219
> > (913) 577-1496
> >
> > [EMAIL PROTECTED]
> >
> >
> >> -Original Message-
> >> From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
> >> Sent: Thursday, March 04, 2004 11:03 AM
> >> To: Struts Users Mailing List
> >> Subject: RE: Best way to handle big search results..
> >>
> >>
> >> Jerry,
> >>
> >> We ran into the same problems you are having, and then there
> >> reaches a point
> >> where you leave it according to what the requirements say,
> >> and when people
> >> complain, you tell them it's because it not only takes a
> >> while at the server
> >> to create the HTML for so many records, but it also takes
> >> just as long to
> >> render them in your browser.  Then they say, "Really?" and
> >> you say, "Yes,
> >> this is why we should do paging," to which they reply, 
> "then we should
> >> probably add it in there."
> >>
> >> -Jake
> >>
> >> -Original Message-
> >> From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
> >> Sent: Thursday, March 04, 2004 10:58 AM
> >> To: 'Struts Users Mailing List'
> >> Subject: RE: Best way to handle big search results..
> >>
> >> Sorry for the misunderstanding - are you asking how the
> >> request is made from
> >> the user to the app?  or from the app to the database?
> >>
> >> Jerry Jalenak
> >> Development Manager, Web Publishing
> >> LabOne, Inc.
> >> 10101 Renner Blvd.
> >> Lenexa, KS  66219
> >> (913) 577-1496
> >>
> >> [EMAIL PROTECTED]
> >>
> >>
> >>> -Original Message-
> >>> From: Mark Lowe [mailto:[EMAIL PROTECTED]
> >>> Sent: Thursday, Marc

RE: Best way to handle big search results..

2004-03-04 Thread Jerry Jalenak
Unfortunately, the business gets to dictate this one, and they maintain that
these large clients need to ability to view up to 90 days worth of data.  I
agree with you that this is logistically impossible, but since the business
requirements state that it must be so, my QC group is testing it and saying
that it fails.  If it fails, it's got to be fixed.....

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 04, 2004 11:17 AM
> To: Struts Users Mailing List
> Subject: Re: Best way to handle big search results..
> 
> 
> Even if everything in your system handles 320,000 lines of 
> html, your users
> never will. This isn't a performance issue, its a design one. 
> You gotta go
> back to the drawing board and stop trying to get something to 
> perform that
> your users will never accept.
> 
> Niall
> 
> - Original Message - 
> From: "Jerry Jalenak" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Thursday, March 04, 2004 5:12 PM
> Subject: RE: Best way to handle big search results..
> 
> 
> > But. I'm already doing paging.  Each independant 
> account table only
> > returns the first 10 detail records; everything is 
> available by paging
> > through the next 'n' pages.  For example, one of my clients 
> has access to
> > almost 8900 accounts.  Of these accounts, there are about 3500 with
> reported
> > data in the past 90 days.  In the past month alone, these 
> 3500 accounts
> have
> > almost 48000 detail records.  So I'm returning (probably 
> not all 3500
> > accounts, but a good majority of 'em) say 2000 tables, with 
> potentially 10
> > detail records per table.  Each table has seven columns, so 
> just for the
> > tables I'm returning about 320,000 lines of html.  I'm 
> really starting to
> > think this is a client side rendering issue - the browser 
> simply can't
> > process the number of lines of html that I'm pushing it.
> >
> > Jerry Jalenak
> > Development Manager, Web Publishing
> > LabOne, Inc.
> > 10101 Renner Blvd.
> > Lenexa, KS  66219
> > (913) 577-1496
> >
> > [EMAIL PROTECTED]
> >
> >
> > > -Original Message-
> > > From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, March 04, 2004 11:03 AM
> > > To: Struts Users Mailing List
> > > Subject: RE: Best way to handle big search results..
> > >
> > >
> > > Jerry,
> > >
> > > We ran into the same problems you are having, and then there
> > > reaches a point
> > > where you leave it according to what the requirements say,
> > > and when people
> > > complain, you tell them it's because it not only takes a
> > > while at the server
> > > to create the HTML for so many records, but it also takes
> > > just as long to
> > > render them in your browser.  Then they say, "Really?" and
> > > you say, "Yes,
> > > this is why we should do paging," to which they reply, 
> "then we should
> > > probably add it in there."
> > >
> > > -Jake
> > >
> > > -Original Message-
> > > From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, March 04, 2004 10:58 AM
> > > To: 'Struts Users Mailing List'
> > > Subject: RE: Best way to handle big search results..
> > >
> > > Sorry for the misunderstanding - are you asking how the
> > > request is made from
> > > the user to the app?  or from the app to the database?
> > >
> > > Jerry Jalenak
> > > Development Manager, Web Publishing
> > > LabOne, Inc.
> > > 10101 Renner Blvd.
> > > Lenexa, KS  66219
> > > (913) 577-1496
> > >
> > > [EMAIL PROTECTED]
> > >
> > >
> > > > -Original Message-
> > > > From: Mark Lowe [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, March 04, 2004 10:55 AM
> > > > To: Struts Users Mailing List
> > > > Subject: Re: Best way to handle big search results..
> > > >
> > > >
> > > > Sure but how do does the query get made?
> > > >
> > > >
> > > >
> > > > On 4 Mar 2004, at 17:49, Jerry Jalenak wrote:
> 

RE: Best way to handle big search results..

2004-03-04 Thread Jerry Jalenak
But. I'm already doing paging.  Each independant account table only
returns the first 10 detail records; everything is available by paging
through the next 'n' pages.  For example, one of my clients has access to
almost 8900 accounts.  Of these accounts, there are about 3500 with reported
data in the past 90 days.  In the past month alone, these 3500 accounts have
almost 48000 detail records.  So I'm returning (probably not all 3500
accounts, but a good majority of 'em) say 2000 tables, with potentially 10
detail records per table.  Each table has seven columns, so just for the
tables I'm returning about 320,000 lines of html.  I'm really starting to
think this is a client side rendering issue - the browser simply can't
process the number of lines of html that I'm pushing it.

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 04, 2004 11:03 AM
> To: Struts Users Mailing List
> Subject: RE: Best way to handle big search results..
> 
> 
> Jerry,
> 
> We ran into the same problems you are having, and then there 
> reaches a point
> where you leave it according to what the requirements say, 
> and when people
> complain, you tell them it's because it not only takes a 
> while at the server
> to create the HTML for so many records, but it also takes 
> just as long to
> render them in your browser.  Then they say, "Really?" and 
> you say, "Yes,
> this is why we should do paging," to which they reply, "then we should
> probably add it in there."
> 
> -Jake
> 
> -Original Message-
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 04, 2004 10:58 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Best way to handle big search results..
> 
> Sorry for the misunderstanding - are you asking how the 
> request is made from
> the user to the app?  or from the app to the database?
> 
> Jerry Jalenak
> Development Manager, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> 
> [EMAIL PROTECTED]
> 
> 
> > -Original Message-
> > From: Mark Lowe [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, March 04, 2004 10:55 AM
> > To: Struts Users Mailing List
> > Subject: Re: Best way to handle big search results..
> > 
> > 
> > Sure but how do does the query get made?
> > 
> > 
> > 
> > On 4 Mar 2004, at 17:49, Jerry Jalenak wrote:
> > 
> > > Mark,
> > >
> > > Let me give you some background first.  On any given day 
> I will be 
> > > reporting
> > > on about 80,000 accounts with over 300,000 detail records 
> available 
> > > for the
> > > past 90 days.  My clients are using this data to determine 
> > employment
> > > elgibility, etc.  The majority of these clients are individual 
> > > employers
> > > that might have between 1 and 100 accounts.  These are no 
> > problem.  The
> > > 'problem' clients are organizations that handle this type 
> > of work for
> > > multiple employers on a contract basis.  These clients can 
> > and do have
> > > several thousand accounts that could *potentially* have data that 
> > > needs to
> > > be reported.
> > >
> > > The approach I took was to write a separate servlet that 
> > wakes up every
> > > hours, re-sweeps the account code table, re-sweeps the data table,
> > > reconciles these into a set of nested maps, and places it into 
> > > application
> > > scope.  Part of this process throws out any account that 
> > doesn't have 
> > > data
> > > to be reported, otherwise I'd be trying to handle 200,000 
> > accounts.  
> > > Based
> > > on the account and type of data the user can 'see', they 
> > are presented 
> > > a
> > > list of accounts where they can pick one, many, or all.  The 
> > > application
> > > then accesses the map structure in application scope, extracts the
> > > appropriate data based on account, date range, etc., and 
> > returns a set 
> > > of
> > >  tables to the user.  These table are required to be
> > > independantly sortable, pagable, etc.  Again, for up to 100 or so 
> > > accounts,
> > > this is extremely fast.  It just goes down the toilet 
> once I start 
> > > getting
> > 

RE: Best way to handle big search results..

2004-03-04 Thread Jerry Jalenak
Sorry for the misunderstanding - are you asking how the request is made from
the user to the app?  or from the app to the database?

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Mark Lowe [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 04, 2004 10:55 AM
> To: Struts Users Mailing List
> Subject: Re: Best way to handle big search results..
> 
> 
> Sure but how do does the query get made?
> 
> 
> 
> On 4 Mar 2004, at 17:49, Jerry Jalenak wrote:
> 
> > Mark,
> >
> > Let me give you some background first.  On any given day I will be 
> > reporting
> > on about 80,000 accounts with over 300,000 detail records available 
> > for the
> > past 90 days.  My clients are using this data to determine 
> employment
> > elgibility, etc.  The majority of these clients are individual 
> > employers
> > that might have between 1 and 100 accounts.  These are no 
> problem.  The
> > 'problem' clients are organizations that handle this type 
> of work for
> > multiple employers on a contract basis.  These clients can 
> and do have
> > several thousand accounts that could *potentially* have data that 
> > needs to
> > be reported.
> >
> > The approach I took was to write a separate servlet that 
> wakes up every
> > hours, re-sweeps the account code table, re-sweeps the data table,
> > reconciles these into a set of nested maps, and places it into 
> > application
> > scope.  Part of this process throws out any account that 
> doesn't have 
> > data
> > to be reported, otherwise I'd be trying to handle 200,000 
> accounts.  
> > Based
> > on the account and type of data the user can 'see', they 
> are presented 
> > a
> > list of accounts where they can pick one, many, or all.  The 
> > application
> > then accesses the map structure in application scope, extracts the
> > appropriate data based on account, date range, etc., and 
> returns a set 
> > of
> >  tables to the user.  These table are required to be
> > independantly sortable, pagable, etc.  Again, for up to 100 or so 
> > accounts,
> > this is extremely fast.  It just goes down the toilet once I start 
> > getting
> > over about 500 accounts.
> >
> > Jerry Jalenak
> > Development Manager, Web Publishing
> > LabOne, Inc.
> > 10101 Renner Blvd.
> > Lenexa, KS  66219
> > (913) 577-1496
> >
> > [EMAIL PROTECTED]
> >
> >
> >> -Original Message-
> >> From: Mark Lowe [mailto:[EMAIL PROTECTED]
> >> Sent: Thursday, March 04, 2004 10:39 AM
> >> To: Struts Users Mailing List
> >> Subject: Re: Best way to handle big search results..
> >>
> >>
> >> Sound's like you'll need some scrolling mechanism in 
> between this can
> >> range from changing a query string for a jdbc type app or using an
> >> object model like hibernate which supports result 
> scrolling.. I'd say
> >> with reasonable confidence that returning 48,000 records in
> >> one go is a
> >> pretty unreasonable thing to expect. And who's gonna read 
> them all in
> >> one go? :o)
> >>
> >> Lets start at the beginning. How are you retrieving the
> >> records at the
> >> moment?
> >>
> >> On 4 Mar 2004, at 17:20, Jerry Jalenak wrote:
> >>
> >>> In my application I often return large amounts of data -
> >> for instance,
> >>> a
> >>> single user may have access to as many as 8500 accounts;
> >> each account
> >>> may
> >>> have several hundred detail records associated with it.
> >> I've solved my
> >>> initial problem of being able to return thousands of records (for
> >>> instance,
> >>> I can return almost 48,000 detail records in a little under 5
> >>> seconds), but
> >>> the problem I have now is that it takes FOREVER for the jsp
> >> to render.
> >>>  I
> >>> mean, I've waited over an hour for this thing to complete.  Does
> >>> anyone have
> >>> any tips on improving / optimizing the performance of a
> >> compiled JSP?
> >>> I'm
> >>> using Tomcat 5.0.18 Stable with J2SDK 1.4.1_02
> >>>
> >>> Thanks!
> >>>
> >>> Jerry Jalenak
> >>> Development Manager, Web Publishing
>

RE: Best way to handle big search results..

2004-03-04 Thread Jerry Jalenak
Mark,

Let me give you some background first.  On any given day I will be reporting
on about 80,000 accounts with over 300,000 detail records available for the
past 90 days.  My clients are using this data to determine employment
elgibility, etc.  The majority of these clients are individual employers
that might have between 1 and 100 accounts.  These are no problem.  The
'problem' clients are organizations that handle this type of work for
multiple employers on a contract basis.  These clients can and do have
several thousand accounts that could *potentially* have data that needs to
be reported.

The approach I took was to write a separate servlet that wakes up every
hours, re-sweeps the account code table, re-sweeps the data table,
reconciles these into a set of nested maps, and places it into application
scope.  Part of this process throws out any account that doesn't have data
to be reported, otherwise I'd be trying to handle 200,000 accounts.  Based
on the account and type of data the user can 'see', they are presented a
list of accounts where they can pick one, many, or all.  The application
then accesses the map structure in application scope, extracts the
appropriate data based on account, date range, etc., and returns a set of
 tables to the user.  These table are required to be
independantly sortable, pagable, etc.  Again, for up to 100 or so accounts,
this is extremely fast.  It just goes down the toilet once I start getting
over about 500 accounts.

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Mark Lowe [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 04, 2004 10:39 AM
> To: Struts Users Mailing List
> Subject: Re: Best way to handle big search results..
> 
> 
> Sound's like you'll need some scrolling mechanism in between this can 
> range from changing a query string for a jdbc type app or using an 
> object model like hibernate which supports result scrolling.. I'd say 
> with reasonable confidence that returning 48,000 records in 
> one go is a 
> pretty unreasonable thing to expect. And who's gonna read them all in 
> one go? :o)
> 
> Lets start at the beginning. How are you retrieving the 
> records at the 
> moment?
> 
> On 4 Mar 2004, at 17:20, Jerry Jalenak wrote:
> 
> > In my application I often return large amounts of data - 
> for instance, 
> > a
> > single user may have access to as many as 8500 accounts; 
> each account 
> > may
> > have several hundred detail records associated with it.  
> I've solved my
> > initial problem of being able to return thousands of records (for 
> > instance,
> > I can return almost 48,000 detail records in a little under 5 
> > seconds), but
> > the problem I have now is that it takes FOREVER for the jsp 
> to render. 
> >  I
> > mean, I've waited over an hour for this thing to complete.  Does 
> > anyone have
> > any tips on improving / optimizing the performance of a 
> compiled JSP?  
> > I'm
> > using Tomcat 5.0.18 Stable with J2SDK 1.4.1_02
> >
> > Thanks!
> >
> > Jerry Jalenak
> > Development Manager, Web Publishing
> > LabOne, Inc.
> > 10101 Renner Blvd.
> > Lenexa, KS  66219
> > (913) 577-1496
> >
> > [EMAIL PROTECTED]
> >
> >
> >> -Original Message-
> >> From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
> >> Sent: Wednesday, March 03, 2004 1:39 PM
> >> To: Struts Users Mailing List
> >> Subject: RE: Best way to handle big search results..
> >>
> >>
> >> We have to work with search results that are sometimes 1000+
> >> items in size.
> >> In addition, much of the information we have is not keyed so
> >> we cannot say
> >> give results between id 2000 and id 20020.
> >>
> >> Some things I found to help with search results where we did
> >> do in memory
> >> sorting/paging were:
> >>
> >> 1. Create view-specific lightweight objects to be pulled 
> from the DB
> >> 2. Memory allowed, it's faster to pull them all at once 
> than lazy load
> >> 4. The real cause of some of our performance problems were
> >> the JSP's/HTML in
> >> rendering a huge list to the client vs. only showing 20 at once.
> >>
> >>
> >> To handle this, I created a SearchResultListAdaptor that
> >> could sit in the
> >> session and handle paging (if anyone wants to argue session
> >> scope with me,
> >> bring it on--).  The SearchResultListAdaptor then

RE: Best way to handle big search results..

2004-03-04 Thread Jerry Jalenak
Jacob / Geeta -

Thanks for the responses.  The business requires that each account / detail
record set be placed in an independantly pagable/sortable table, so I'm
using the  taglib to handle this.  For relatively small numbers
(say up to a 100 accounts or so) the performance is really pretty good.  I'd
like to be able to restrict the date range that a user can specify, but
again, business requirement states that 'the user must be able to browse
upto 90 days worth of data'.  I've tried to explain that, for some of these
large clients this simply isn't going to work.  I was hoping (8-) ) that
there was a setting in Tomcat that I may have missed (I've already set up
Tomcat as a 'production' environment).

I don't know if it makes a difference, but I have yet to move to the EL tags
- I'm still using the old Struts taglibs for things like , etc.
Has anyone benchmarked the performance between these two approaches?

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Geeta Ramani [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 04, 2004 10:33 AM
> To: Struts Users Mailing List
> Subject: Re: Best way to handle big search results..
> 
> 
> Jerry:
> 
> Jacob's note (see below) already says this would be a 
> problem, but he has also
> mentioned a way to solve your problem; check if that works 
> for you. Store the
> records in a session variable (that's right, session, instead 
> of request makes
> sense here!!) and display just 20 or so records at a time.  
> You will have to see
> if this is feasible.. it will depend on how "strong-big" your 
> server is, etc..:)
> 
> Regards,
> Geeta
> 
> Jerry Jalenak wrote:
> 
> > In my application I often return large amounts of data - 
> for instance, a
> > single user may have access to as many as 8500 accounts; 
> each account may
> > have several hundred detail records associated with it.  
> I've solved my
> > initial problem of being able to return thousands of 
> records (for instance,
> > I can return almost 48,000 detail records in a little under 
> 5 seconds), but
> > the problem I have now is that it takes FOREVER for the jsp 
> to render.  I
> > mean, I've waited over an hour for this thing to complete.  
> Does anyone have
> > any tips on improving / optimizing the performance of a 
> compiled JSP?  I'm
> > using Tomcat 5.0.18 Stable with J2SDK 1.4.1_02
> >
> > Thanks!
> >
> > Jerry Jalenak
> > Development Manager, Web Publishing
> > LabOne, Inc.
> > 10101 Renner Blvd.
> > Lenexa, KS  66219
> > (913) 577-1496
> >
> > [EMAIL PROTECTED]
> >
> > > -Original Message-
> > > From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, March 03, 2004 1:39 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: Best way to handle big search results..
> > >
> > >
> > > We have to work with search results that are sometimes 1000+
> > > items in size.
> > > In addition, much of the information we have is not keyed so
> > > we cannot say
> > > give results between id 2000 and id 20020.
> > >
> > > Some things I found to help with search results where we did
> > > do in memory
> > > sorting/paging were:
> > >
> > > 1. Create view-specific lightweight objects to be pulled 
> from the DB
> > > 2. Memory allowed, it's faster to pull them all at once 
> than lazy load
> > > 4. The real cause of some of our performance problems were
> > > the JSP's/HTML in
> > > rendering a huge list to the client vs. only showing 20 at once.
> > >
> > >
> > > To handle this, I created a SearchResultListAdaptor that
> > > could sit in the
> > > session and handle paging (if anyone wants to argue session
> > > scope with me,
> > > bring it on--).  The SearchResultListAdaptor then contained
> > > the behavior of
> > > sort order/paging, etc.  Sorting was done via bean 
> property using a
> > > BeanUtilsComparator.  So my SearchResultListAdaptor could
> > > then work with an
> > > list of beans.
> > >
> > > Best Regards,
> > > Jacob
> > >
> > > -Original Message-
> > > From: Arne Brutschy [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, March 03, 2004 12:57 PM
> > > To: Struts Users Mailing List
> > > Subject: Best way to handle big 

RE: Best way to handle big search results..

2004-03-04 Thread Jerry Jalenak
In my application I often return large amounts of data - for instance, a
single user may have access to as many as 8500 accounts; each account may
have several hundred detail records associated with it.  I've solved my
initial problem of being able to return thousands of records (for instance,
I can return almost 48,000 detail records in a little under 5 seconds), but
the problem I have now is that it takes FOREVER for the jsp to render.  I
mean, I've waited over an hour for this thing to complete.  Does anyone have
any tips on improving / optimizing the performance of a compiled JSP?  I'm
using Tomcat 5.0.18 Stable with J2SDK 1.4.1_02

Thanks!

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 03, 2004 1:39 PM
> To: Struts Users Mailing List
> Subject: RE: Best way to handle big search results..
> 
> 
> We have to work with search results that are sometimes 1000+ 
> items in size.
> In addition, much of the information we have is not keyed so 
> we cannot say
> give results between id 2000 and id 20020.
> 
> Some things I found to help with search results where we did 
> do in memory
> sorting/paging were:
> 
> 1. Create view-specific lightweight objects to be pulled from the DB
> 2. Memory allowed, it's faster to pull them all at once than lazy load
> 4. The real cause of some of our performance problems were 
> the JSP's/HTML in
> rendering a huge list to the client vs. only showing 20 at once.
> 
> 
> To handle this, I created a SearchResultListAdaptor that 
> could sit in the
> session and handle paging (if anyone wants to argue session 
> scope with me,
> bring it on--).  The SearchResultListAdaptor then contained 
> the behavior of
> sort order/paging, etc.  Sorting was done via bean property using a
> BeanUtilsComparator.  So my SearchResultListAdaptor could 
> then work with an
> list of beans.
> 
> Best Regards,
> Jacob
> 
> -Original Message-
> From: Arne Brutschy [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 03, 2004 12:57 PM
> To: Struts Users Mailing List
> Subject: Best way to handle big search results..
> 
> Hi,
> 
> I'm looking for the best way to handle big search results.
> 
> Setting: the user can search for other users in the ldap 
> directory. This 
> might return a long list of results (~40.000 entrys). Sadly, OpenLDAP 
> doesn't support server-side sorting, so I have to sort the results 
> myself. I want to display 20 items per page, and the user can browse 
> through these results.
> 
> What is the best way to handle these result object? Sorting once and 
> storing/caching it in the session or searching and sorting every time 
> the user requests a new page of results?
> 
> Any thoughts/experiences?
> 
> Regards,
> Arne Brutschy
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 4 Compression Filter

2004-02-25 Thread Jerry Jalenak
Kris - Thanks.  So what's a reasonable setting?  The example has the
threshold set to 10; is this OK for most web apps? 



Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Kris Schneider [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 25, 2004 9:42 AM
> To: Struts Users Mailing List
> Subject: RE: Tomcat 4 Compression Filter
> 
> 
> Essentially, the "compressionThreshold" filter init param is 
> a buffer size for
> CompressionResponseStream. If it's 0, then compression is 
> turned off (this is
> handled by the filter, not the stream). Otherwise, it's the max of 128
> (hard-coded min) and whatever is set in web.xml. The stream 
> works by buffering
> up bytes and periodically flushing them to a GZIPOutputStream 
> that wraps the
> response's ouput stream.
> 
> Quoting Jerry Jalenak <[EMAIL PROTECTED]>:
> 
> > I've also been playing around with this with mixed results. 
>  I've been
> > looking for some doc on the filter mainly to better understand the
> > 'compressThreshold' setting.  Does anyone have any doc for 
> this thing?
> > 
> > Jerry Jalenak
> > Development Manager, Web Publishing
> > LabOne, Inc.
> > 10101 Renner Blvd.
> > Lenexa, KS  66219
> > (913) 577-1496
> > 
> > [EMAIL PROTECTED]
> > 
> > 
> > > -Original Message-
> > > From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, February 25, 2004 6:13 AM
> > > To: Struts User Jakarta
> > > Subject: Tomcat 4 Compression Filter
> > > 
> > > 
> > > There is a CompressionFilter class shipped with with Tomcat 
> > > which compresses the ServletResponse that I'm considering 
> > > using (we have some remote offices which have slow links):
> > > 
> > > http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/webapps/e
> > > xamples/WEB-INF/classes/compressionFilters/CompressionFilter.j
> > > ava?rev=1.8&view=auto
> > > 
> > > It looks OK to me and seems to work fine when I plug it 
> into my app.
> > > 
> > > I'm a bit concerned that its only an "example" class rather 
> > > than standard feature of Tomcat. 
> > > 
> > > Has anyone used this in a 'live' environment and if so are 
> > > there any issues or with it or recommendations?
> > > 
> > > Does anyone have any alternatives that they have deployed?
> > > 
> > > Niall
> 
> -- 
> Kris Schneider <mailto:[EMAIL PROTECTED]>
> D.O.Tech   <http://www.dotech.com/>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 4 Compression Filter

2004-02-25 Thread Jerry Jalenak
I've also been playing around with this with mixed results.  I've been
looking for some doc on the filter mainly to better understand the
'compressThreshold' setting.  Does anyone have any doc for this thing?

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 25, 2004 6:13 AM
> To: Struts User Jakarta
> Subject: Tomcat 4 Compression Filter
> 
> 
> There is a CompressionFilter class shipped with with Tomcat 
> which compresses the ServletResponse that I'm considering 
> using (we have some remote offices which have slow links):
> 
> http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/webapps/e
> xamples/WEB-INF/classes/compressionFilters/CompressionFilter.j
> ava?rev=1.8&view=auto
> 
> It looks OK to me and seems to work fine when I plug it into my app.
> 
> I'm a bit concerned that its only an "example" class rather 
> than standard feature of Tomcat. 
> 
> Has anyone used this in a 'live' environment and if so are 
> there any issues or with it or recommendations?
> 
> Does anyone have any alternatives that they have deployed?
> 
> Niall
> 

This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Extra Lines in Compiled JSP

2004-02-20 Thread Jerry Jalenak
Thanks to everyone and for their comments.

What I was seeing were several blank lines at the top of my rendered page -
lines that I could not account for in the html code.  After scratching my
head for a few days, it occurred to me that the number of blank lines being
rendered were the same number of lines as my <% taglib %>'s - in this case
seven lines.  Opening up the compiled JSP I found where it was putting seven
out.write() statements.  I know the browser should ignore successive white
space like this, but in my case it wasn't (this is an IE 6 browser).  

We're running Tomcat 5.0.18 and J2SDK 1.4.2.

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Piper, James D CECOM SEC EPS
> [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 20, 2004 3:48 PM
> To: 'Adam Hardy'; Struts Users Mailing List
> Subject: RE: Extra Lines in Compiled JSP
> 
> 
> Why do you have this problem with extra lines in your html 
> generated by the
> <%@ %> section of your jsp and I do not - I use JBOSS and 
> WebLogic both --
> never saw this problem?
> 
> - Jim
> 
> 
> -Original Message-
> From: Adam Hardy [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 20, 2004 3:42 PM
> To: Struts Users Mailing List
> Subject: Re: Extra Lines in Compiled JSP
> 
> 
> Perhaps it was in the taglibs-user mailing list where I dreamt it?
> 
> Maybe I'm searching for the wrong key-words - I've looked for 'white 
> space' and 'blank lines' but not found anything. Perhaps it 
> was even on 
> this list?
> 
> Check this link for a filter solution:
> 
> http://www.mail-archive.com/[EMAIL PROTECTED]/ms
> g03824.html
> 
> On 02/20/2004 08:14 PM Gopalakrishnan, Jayesh wrote:
> > I am talking abt generated output(HTML/csv/email/whatever). If 
> > the question was abt generated java code, nobody should care.
> > 
> > The generated output contains newlines for every <% %> enclosure 
> > in the JSP. And if you are generating anything other 
> > than HTML output, thats likely to cause a problem.
> > 
> > We did this for our export to exel feature...
> > 
> > cheers
> > -jayash
> > 
> > 
> > 
> > -Original Message-
> > From: Thad Humphries [mailto:[EMAIL PROTECTED]
> > Sent: Friday, February 20, 2004 11:05 AM
> > To: Struts Users Mailing List
> > Subject: Re: Extra Lines in Compiled JSP
> > 
> > 
> > Why care about how generated code looks?  This approach 
> makes the code you
> 
> > maintain harder to read.
> > 
> > On Friday 20 February 2004 14:01, Gopalakrishnan, Jayesh wrote:
> > 
> >>I must have had the same dream !!
> >>I remember that tomcat config thing..and not too
> >>long ago. I am surprised you couldn't find it.
> >>
> >>We had to do something like this though, for weblogic.
> >>
> >><%@ taglib uri="xxx" prefix="bean"
> >>%><%@ taglib uri="/display" prefix="display"
> >>%><%@ taglib uri="xxx" prefix="html"
> >>%><%@ taglib uri="xxx" prefix="nested"
> >>%><%@ taglib uri="xxx" prefix="tiles"
> >>%><%@ page language="java"
> >>%><%@ page contentType="text/html; charset=UTF-8"
> >>%><% your code continues.%>
> >>...
> > 
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> -- 
> struts 1.1 + tomcat 5.0.16 + java 1.4.2
> Linux 2.4.20 Debian
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] Animated .GIF's

2004-02-20 Thread Jerry Jalenak
Colin - 

Can you post your  ...  code?  I just tried to wrap my  in
one and it still doesn't work....

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Colin Kilburn [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 20, 2004 12:42 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] Animated .GIF's
> 
> 
> Jerry,
> 
> I was just toying with something similar yesterday.   My image was 
> inside a div, though, and the animation works fine.  ... i.e. 
> I changed 
> the display attribute on the div, not the image.   I'm also using 
> mozilla on mandrake 9.   Not sure about how it behaves in IE.
> 
> HTH,
> Colin
> 
> Jerry Jalenak wrote:
> 
> >I've been trying to find an answer to this via google for 
> awhile now, but
> >can't seem to find any info on my problem.  I'm hoping 
> someone might be able
> >to shed some light on this for me.
> >
> >I've got a simple animated .gif (Loading Data... kind of 
> thing) that I need
> >to display whenever my submit button is clicked.  Until the 
> submit button is
> >clicked though, I hide the image 
> >
> >  >style="display:none;">
> >
> >When the user clicks the submit button, I use javascript to 
> change the style
> >to "display:inline".  The image appears, but the animation 
> doesn't seem to
> >work.  If I load the image without the "display:none" or even with
> >"display:inline", the animation works fine.  It only seems 
> to fail when the
> >initial display setting is 'none'.  What gives?  Am I just missing an
> >additional setting?
> >
> >Thanks.
> >
> >Jerry Jalenak
> >Development Manager, Web Publishing
> >LabOne, Inc.
> >10101 Renner Blvd.
> >Lenexa, KS  66219
> >(913) 577-1496
> >
> >[EMAIL PROTECTED]
> >
> >
> >This transmission (and any information attached to it) may 
> be confidential and
> >is intended solely for the use of the individual or entity 
> to which it is
> >addressed. If you are not the intended recipient or the 
> person responsible for
> >delivering the transmission to the intended recipient, be 
> advised that you
> >have received this transmission in error and that any use, 
> dissemination,
> >forwarding, printing, or copying of this information is 
> strictly prohibited.
> >If you have received this transmission in error, please 
> immediately notify
> >LabOne at the following email address: 
> [EMAIL PROTECTED]
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >  
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] Animated .GIF's

2004-02-20 Thread Jerry Jalenak
I've been trying to find an answer to this via google for awhile now, but
can't seem to find any info on my problem.  I'm hoping someone might be able
to shed some light on this for me.

I've got a simple animated .gif (Loading Data... kind of thing) that I need
to display whenever my submit button is clicked.  Until the submit button is
clicked though, I hide the image 



When the user clicks the submit button, I use javascript to change the style
to "display:inline".  The image appears, but the animation doesn't seem to
work.  If I load the image without the "display:none" or even with
"display:inline", the animation works fine.  It only seems to fail when the
initial display setting is 'none'.  What gives?  Am I just missing an
additional setting?

Thanks.

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Extra Lines in Compiled JSP

2004-02-20 Thread Jerry Jalenak
Thanks for the reply.  I strung out the taglib defn's and reduced the number
of out.writes from seven to one.  It's better, but still not perfect.  Seems
like the jsp compiler should be smart enough to recognize that it doesn't
need to generate anything for these kinds of lines.




Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Hubert Rabago [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 20, 2004 10:15 AM
> To: Struts Users Mailing List
> Subject: Re: Extra Lines in Compiled JSP
> 
> 
> Try this:
> <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"; 
> prefix="bean"
> %><%@ taglib uri="/display" prefix="display" 
> %><%@ taglib uri="http://jakarta.apache.org/struts/tags-html"; 
> prefix="html"
> %><%@ taglib uri="http://jakarta.apache.org/struts/tags-nested";
> prefix="nested" 
> %><%@ taglib 
> uri="http://jakarta.apache.org/struts/tags-tiles"; prefix="tiles"
> %><%@ page language="java" 
> %><%@ page contentType="text/html; charset=UTF-8" %>
> 
> The idea being you try to contain the \r\n inside the tags 
> and outside the
> template text.
> 
> --- Jerry Jalenak <[EMAIL PROTECTED]> wrote:
> > Hi All,
> > 
> > I should know how to fix this, but am at a loss.  At the 
> top of my JSP I
> > have the following lines:
> > 
> > 
> > When I look at the compiled JSP, there are seven blank lines (i.e.
> > out.write("\r\n"); ).  Is there anyway to have the JSP 
> compiler (were
> > running Tomcat 5.0.18 Stable) NOT generate these lines?  I 
> guess they come
> > from the <% %> sources lines, but it really screws up 
> my generated HTML
> > code
> > 
> > 
> > Thanks!
> > 
> > Jerry Jalenak
> > Development Manager, Web Publishing
> > LabOne, Inc.
> > 10101 Renner Blvd.
> > Lenexa, KS  66219
> > (913) 577-1496
> > 
> > [EMAIL PROTECTED]
> > 
> > 
> > This transmission (and any information attached to it) may 
> be confidential
> > and
> > is intended solely for the use of the individual or entity 
> to which it is
> > addressed. If you are not the intended recipient or the 
> person responsible
> > for
> > delivering the transmission to the intended recipient, be 
> advised that you
> > have received this transmission in error and that any use, 
> dissemination,
> > forwarding, printing, or copying of this information is strictly
> > prohibited.
> > If you have received this transmission in error, please 
> immediately notify
> > LabOne at the following email address: 
> [EMAIL PROTECTED]
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Mail SpamGuard - Read only the mail you want.
> http://antispam.yahoo.com/tools
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Extra Lines in Compiled JSP

2004-02-20 Thread Jerry Jalenak
Hi All,

I should know how to fix this, but am at a loss.  At the top of my JSP I
have the following lines:

<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"; prefix="bean" %>
<%@ taglib uri="/display" prefix="display" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"; prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested";
prefix="nested" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles"; prefix="tiles"
%>
<%@ page language="java" %>
<%@ page contentType="text/html; charset=UTF-8" %>

When I look at the compiled JSP, there are seven blank lines (i.e.
out.write("\r\n"); ).  Is there anyway to have the JSP compiler (were
running Tomcat 5.0.18 Stable) NOT generate these lines?  I guess they come
from the <% %> sources lines, but it really screws up my generated HTML
code


Thanks!

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [DisplayTag] Use of ID= Parameter

2004-01-23 Thread Jerry Jalenak
Once I get this next release out I intend to begin converting over to JSTL.
I'll revisit the dynamic Id attribute at that time; until then, I can work
with a patched version of ....

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Paul McCulloch [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 23, 2004 9:00 AM
> To: 'Struts Users Mailing List'
> Subject: RE: [DisplayTag] Use of ID= Parameter
> 
> 
> Another thought. I believe that EL support has been added to 
> the CVS version
> of the taglib (or at least a special EL version) - maybe the 
> standard EL
> version supports a dynamic Id attribute?
> 
> > -Original Message-
> > From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
> > Sent: 23 January 2004 14:29
> > To: 'Struts Users Mailing List'
> > Subject: RE: [DisplayTag] Use of ID= Parameter
> > 
> > 
> > Paul -
> > 
> > Thanks!  I modifed the TLD, added the get/set methods for the 
> > tableId parm,
> > and modified the encodeParameter() method as suggested, and 
> > everything is
> > working as I expected.  Thanks again!
> > 
> > Jerry Jalenak
> > Development Manager, Web Publishing
> > LabOne, Inc.
> > 10101 Renner Blvd.
> > Lenexa, KS  66219
> > (913) 577-1496
> > 
> > [EMAIL PROTECTED]
> > 
> > 
> > > -Original Message-
> > > From: Paul McCulloch [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, January 23, 2004 4:20 AM
> > > To: 'Struts Users Mailing List'
> > > Subject: RE: [DisplayTag] Use of ID= Parameter
> > > 
> > > 
> > > This has been raised before. See 
> > > 
> > > http://sourceforge.net/tracker/index.php?func=detail&aid=81300
> > > 6&group_id=730
> > > 68&atid=536613
> > > 
> > > I've patched the taglib to support an additional tableId 
> > > attribute which can
> > > be dynamic. This is a simple change to TableTag.java & the 
> > > supporting TLD.
> > > The other change is to encodeParameter() to use the new 
> > attribute for
> > > pagination and sorting URL generation.
> > > 
> > >   change
> > > 
> > > String stringIdentifier = "x-" + getId() + this.name;
> > > 
> > > to
> > > 
> > > String stringIdentifier = "x-" + getId() + 
> > this.tableid +
> > > this.name;
> > > 
> > > Paul
> > > 
> > > > -Original Message-
> > > > From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
> > > > Sent: 22 January 2004 16:27
> > > > To: '[EMAIL PROTECTED]'
> > > > Subject: [DisplayTag] Use of ID= Parameter
> > > > 
> > > > 
> > > > All,
> > > > 
> > > > I'm in the process of implementing the new  taglib, 
> > > > and am really
> > > > excited about the ability to have multiple, independent, 
> > > > tables on the same
> > > > page.  In order to make this work, though, the ID= parameter 
> > > > for each table
> > > > has to be different.  This is where I'm running into 
> > > > problems.  I've got my
> > > >  inside of a  so I can 
> > > > generate 1-n tables
> > > > - this works fine.  However, when I try to vary the ID= 
> > > > parameter, I get
> > > > ClassCastExceptions in 
> > org.displaytag.tags.TableTagExtraInfo on the
> > > > following line:
> > > > 
> > > > Object tagId = 
> data.getAttributeString(TagAttributeInfo.ID);
> > > > 
> > > > I've tried to define a page-scope variable and include it in 
> > > > a small chunk
> > > > of scriptlet code, but I just can't seem to get around this.  
> > > > Does anyone
> > > > have any ideas?
> > > > 
> > > > Thanks!
> > > > 
> > > > Jerry Jalenak
> > > > Development Manager, Web Publishing
> > > > LabOne, Inc.
> > > > 10101 Renner Blvd.
> > > > Lenexa, KS  66219
> > > > (913) 577-1496
> > > > 
> > > > [EMAIL PROTECTED]
> > > > 
> > > > 
> > > > This transmission (and any information attached to it) may be 
> > > > confidential and
> > &

RE: [Validator] Custom Validator Fails to Return to JSP

2004-01-23 Thread Jerry Jalenak


Gawd, I hate typos.



Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 22, 2004 3:15 PM
> To: '[EMAIL PROTECTED]'
> Subject: [Validator] Custom Validator Fails to Return to JSP
> 
> 
> I've used the 'comparing two fields' example from Validator 
> for a while now
> without any problem.  When I brought down the 20040106 
> nightly build, I
> noticed that several methods had been deprecated, so I 
> dutifully changed
> things over:
> 
> From:
> 
>   public static boolean comparePasswords(Object _object,
> ValidatorAction _va, Field _field, ActionErrors _errors, 
> HttpServletRequest
> _request)
>   
>   _errors.add(_field.getKey(), 
> Resources.getActionError(_request, _va,
> _field));
> 
> To:
>   public static boolean comparePasswords(Object _object,
> ValidatorAction _va, Field _field, ActionMessages _messages,
> HttpServletRequest _request)
> 
>   _messages.add(_field.getKey(), 
> Resources.getActionMessage(_request,
> _va, _field));
> 
> If I continue to use the 'From' form (with ActionErrors), I 
> get NPE's on the
> _errors.add; if I use the 'To' form, everything seems to work 
> but I don't go
> back to my JSP; rather, it appears to be returning null as I 
> end up with a
> blank page.
> 
> Also, before anyone asks, I do change the validator.xml to 
> the appropriate
> methodParms:
> 
> From:
> 
>  classname="com.lbo.ms.v3.struts.extensions.Validator"
>   method="comparePasswords" 
>   methodParams="java.lang.Object,
>   
> org.apache.commons.validator.ValidatorAction,
>   org.apache.commons.validator.Field,
>   org.apache.struts.action.ActionErrors,
>   javax.servlet.http.HttpServletRequest"
>   msg="errors.compare.passwords" />
> 
> To:
> 
>  classname="com.lbo.ms.v3.struts.extensions.Validator"
>   method="comparePasswords" 
>   methodParams="java.lang.Object,
>   
> org.apache.commons.validator.ValidatorAction,
>   org.apache.commons.validator.Field,
>   org.apache.struts.action.ActionMessages,
>   javax.servlet.http.HttpServletRequest"
>   msg="errors.compare.passwords" />
> 
> I can't seem to find a bug report on this, and there doesn't 
> seem to be much
> more information on the changes on the website.  Can someone 
> shed some light
> on this?
> 
> Thanks!
> 
> 
> PS - I would go grab a more current nightly build, but it 
> appears that the
> nightlies are failing. Has anyone looked at this?
> 
> Jerry Jalenak
> Development Manager, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> 
> [EMAIL PROTECTED]
> 
> 
> This transmission (and any information attached to it) may be 
> confidential and
> is intended solely for the use of the individual or entity to 
> which it is
> addressed. If you are not the intended recipient or the 
> person responsible for
> delivering the transmission to the intended recipient, be 
> advised that you
> have received this transmission in error and that any use, 
> dissemination,
> forwarding, printing, or copying of this information is 
> strictly prohibited.
> If you have received this transmission in error, please 
> immediately notify
> LabOne at the following email address: 
> [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [DisplayTag] Use of ID= Parameter

2004-01-23 Thread Jerry Jalenak
Paul -

Thanks!  I modifed the TLD, added the get/set methods for the tableId parm,
and modified the encodeParameter() method as suggested, and everything is
working as I expected.  Thanks again!

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Paul McCulloch [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 23, 2004 4:20 AM
> To: 'Struts Users Mailing List'
> Subject: RE: [DisplayTag] Use of ID= Parameter
> 
> 
> This has been raised before. See 
> 
> http://sourceforge.net/tracker/index.php?func=detail&aid=81300
> 6&group_id=730
> 68&atid=536613
> 
> I've patched the taglib to support an additional tableId 
> attribute which can
> be dynamic. This is a simple change to TableTag.java & the 
> supporting TLD.
> The other change is to encodeParameter() to use the new attribute for
> pagination and sorting URL generation.
> 
>   change
> 
> String stringIdentifier = "x-" + getId() + this.name;
> 
> to
> 
> String stringIdentifier = "x-" + getId() + this.tableid +
> this.name;
> 
> Paul
> 
> > -Original Message-
> > From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
> > Sent: 22 January 2004 16:27
> > To: '[EMAIL PROTECTED]'
> > Subject: [DisplayTag] Use of ID= Parameter
> > 
> > 
> > All,
> > 
> > I'm in the process of implementing the new  taglib, 
> > and am really
> > excited about the ability to have multiple, independent, 
> > tables on the same
> > page.  In order to make this work, though, the ID= parameter 
> > for each table
> > has to be different.  This is where I'm running into 
> > problems.  I've got my
> >  inside of a  so I can 
> > generate 1-n tables
> > - this works fine.  However, when I try to vary the ID= 
> > parameter, I get
> > ClassCastExceptions in org.displaytag.tags.TableTagExtraInfo on the
> > following line:
> > 
> > Object tagId = data.getAttributeString(TagAttributeInfo.ID);
> > 
> > I've tried to define a page-scope variable and include it in 
> > a small chunk
> > of scriptlet code, but I just can't seem to get around this.  
> > Does anyone
> > have any ideas?
> > 
> > Thanks!
> > 
> > Jerry Jalenak
> > Development Manager, Web Publishing
> > LabOne, Inc.
> > 10101 Renner Blvd.
> > Lenexa, KS  66219
> > (913) 577-1496
> > 
> > [EMAIL PROTECTED]
> > 
> > 
> > This transmission (and any information attached to it) may be 
> > confidential and
> > is intended solely for the use of the individual or entity to 
> > which it is
> > addressed. If you are not the intended recipient or the 
> > person responsible for
> > delivering the transmission to the intended recipient, be 
> > advised that you
> > have received this transmission in error and that any use, 
> > dissemination,
> > forwarding, printing, or copying of this information is 
> > strictly prohibited.
> > If you have received this transmission in error, please 
> > immediately notify
> > LabOne at the following email address: 
> > [EMAIL PROTECTED]
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> **
> Axios Email Confidentiality Footer
> Privileged/Confidential Information may be contained in this 
> message. If you are not the addressee indicated in this 
> message (or responsible for delivery of the message to such 
> person), you may not copy or deliver this message to anyone. 
> In such case, you should destroy this message, and notify us 
> immediately. If you or your employer does not consent to 
> Internet email messages of this kind, please advise us 
> immediately. Opinions, conclusions and other information 
> expressed in this message are not given or endorsed by my 
> Company or employer unless otherwise indicated by an 
> authorised representative independent of this message.
> WARNING:
> While Axios Systems Ltd takes steps to prevent computer 
> viruses from being transmitted via electronic mail 
> attachments we cannot guarantee that attachments do not 
> contain computer virus code.  You are therefore strongly 
> advised to undertake anti virus checks prior to accessing the 
> attachment to this electronic mail.  Axi

[Validator] Custom Validator Fails to Return to JSP

2004-01-22 Thread Jerry Jalenak
I've used the 'comparing two fields' example from Validator for a while now
without any problem.  When I brought down the 20040106 nightly build, I
noticed that several methods had been deprecated, so I dutifully changed
things over:

From:

public static boolean comparePasswords(Object _object,
ValidatorAction _va, Field _field, ActionErrors _errors, HttpServletRequest
_request)

_errors.add(_field.getKey(), Resources.getActionError(_request, _va,
_field));

To:
public static boolean comparePasswords(Object _object,
ValidatorAction _va, Field _field, ActionMessages _messages,
HttpServletRequest _request)

_messages.add(_field.getKey(), Resources.getActionMessage(_request,
_va, _field));

If I continue to use the 'From' form (with ActionErrors), I get NPE's on the
_errors.add; if I use the 'To' form, everything seems to work but I don't go
back to my JSP; rather, it appears to be returning null as I end up with a
blank page.

Also, before anyone asks, I do change the validator.xml to the appropriate
methodParms:

From:



To:



I can't seem to find a bug report on this, and there doesn't seem to be much
more information on the changes on the website.  Can someone shed some light
on this?

Thanks!


PS - I would go grab a more current nightly build, but it appears that the
nightlies are failing. Has anyone looked at this?

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[DisplayTag] Use of ID= Parameter

2004-01-22 Thread Jerry Jalenak
All,

I'm in the process of implementing the new  taglib, and am really
excited about the ability to have multiple, independent, tables on the same
page.  In order to make this work, though, the ID= parameter for each table
has to be different.  This is where I'm running into problems.  I've got my
 inside of a  so I can generate 1-n tables
- this works fine.  However, when I try to vary the ID= parameter, I get
ClassCastExceptions in org.displaytag.tags.TableTagExtraInfo on the
following line:

Object tagId = data.getAttributeString(TagAttributeInfo.ID);

I've tried to define a page-scope variable and include it in a small chunk
of scriptlet code, but I just can't seem to get around this.  Does anyone
have any ideas?

Thanks!

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Using tag with nested beans

2004-01-20 Thread Jerry Jalenak
Arron - 

Thanks for the reply.  I finally opened up the  tag code and
discovered that the default scope used is 'request'.  What I ended up doing
was the following:


 // expose
the current list item in page scope







This seems to work correctly.  I'm now trying to move up one level of
iteration and nest list3 inside or a table for list2



Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Arron Bates [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 20, 2004 12:59 AM
> To: Struts Users Mailing List
> Subject: Re: Using  tag with nested beans
> 
> 
> Jerry,
> 
> Try using  tags to make bean references that 
> the display tags
> could then get a hold of and use. Otherwise, there would be 
> no other way
> unless the display tag source code was updated to recognise 
> and use the nested
> context.
> 
> Hope this does the trick.
> 
> 
> Arron.
> 
> 
> 
> > I'm trying to get the  tag library to work with 
> my nested bean
> > structure without much luck, and after screwing around with 
> this for 
> > the past three days, I'm ready to throw in the towel.  If 
> anyone can 
> > see what it is I'm doing wrong, I'd appreciate it.
> > 
> > Basically I've got the following (currently):
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > This works fine, as I get the values for item1, item2, etc.  I now 
> > need to replace the last  with a  
> > tag with appropriate 's.  I've tried several 
> > things, including:
> > 
> > 
> > 
> > 
> > 
> > I've also tried to set a page-scope object on the 'list2' iterate:
> > 
> > 
> > 
> > 
> > 
> > Whatever I try I am consistently getting a JSP exception thrown of 
> > 
> > ERROR 01/19/2004:12:07:51 - Error looking up property "specimenId" 
> > in object type "java.lang.String" Exception: [.LookupUtil] Error 
> > looking up property "specimenId" in object type "java.lang.String" 
> > Cause: Unknown property 'specimenId'
> > 
> > from 
> > 
> > org.displaytag.util.LookupUtil.getBeanProperty(LookupUtil.java:210)
> > at org.displaytag.model.Column.getValue(Column.java:93)
> > at
> > 
> org.displaytag.model.Column.createChoppedAndLinkedValue(Column
> .java:144)at
> org.displaytag.model.Column.getOpenTag(Column.java:120)   at
> org.displaytag.tags.TableTag.getHTMLData(TableTag.java:1136)  at
> org.displaytag.tags.TableTag.doEndTag(TableTag.java:847)
> > 
> > Help!  I'm at my wits end on this.  Any ideas?  Or will the 
> >  taglib just not work with nested beans?
> > 
> > Thanks!
> > 
> > Jerry Jalenak
> > Development Manager, Web Publishing
> > LabOne, Inc.
> > 10101 Renner Blvd.
> > Lenexa, KS  66219
> > (913) 577-1496
> > 
> > [EMAIL PROTECTED]
> > 
> > This transmission (and any information attached to it) may be 
> > confidential and is intended solely for the use of the 
> individual or 
> > entity to which it is addressed. If you are not the intended 
> > recipient or the person responsible for delivering the transmission 
> > to the intended recipient, be advised that you have received this 
> > transmission in error and that any use, dissemination, forwarding, 
> > printing, or copying of this information is strictly prohibited. If 
> > you have received this transmission in error, please 
> immediately notify
> > LabOne at the following email address: 
> [EMAIL PROTECTED]
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using tag with nested beans

2004-01-19 Thread Jerry Jalenak
I'm trying to get the  tag library to work with my nested bean
structure without much luck, and after screwing around with this for the
past three days, I'm ready to throw in the towel.  If anyone can see what it
is I'm doing wrong, I'd appreciate it.

Basically I've got the following (currently):











This works fine, as I get the values for item1, item2, etc.  I now need to
replace the last  with a  tag with
appropriate 's.  I've tried several things, including:





I've also tried to set a page-scope object on the 'list2' iterate:





Whatever I try I am consistently getting a JSP exception thrown of 

ERROR 01/19/2004:12:07:51 - Error looking up property "specimenId" in object
type "java.lang.String"
Exception: [.LookupUtil] Error looking up property "specimenId" in object
type "java.lang.String"
Cause: Unknown property 'specimenId'

from 

org.displaytag.util.LookupUtil.getBeanProperty(LookupUtil.java:210)
at org.displaytag.model.Column.getValue(Column.java:93)
at
org.displaytag.model.Column.createChoppedAndLinkedValue(Column.java:144)
at org.displaytag.model.Column.getOpenTag(Column.java:120)
at org.displaytag.tags.TableTag.getHTMLData(TableTag.java:1136)
at org.displaytag.tags.TableTag.doEndTag(TableTag.java:847)

Help!  I'm at my wits end on this.  Any ideas?  Or will the 
taglib just not work with nested beans?

Thanks!


Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] Synchronized access to application-scoped object

2003-12-24 Thread Jerry Jalenak
Craig - 

Thanks for the response.  One last question - during the time period where
the getServletContext().setAttribute() is executing in Servlet_1, is there
any concern about collision with an access from Servlet_2 (Struts)?  I guess
I'm unsure whether the setAttribute() method is synchronized or not
(the javadoc doesn't say.)

Thanks!

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 24, 2003 1:00 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] Synchronized access to application-scoped object
> 
> 
> Quoting Jerry Jalenak <[EMAIL PROTECTED]>:
> 
> > Holiday Greetings to All!
> > 
> > Quick design question - Is it possible to synchronize an 
> application-scoped
> > object between two servlets within the same web 
> application?  I have a
> > servlet that I have written that maintains a List object 
> that is stored in
> > application scope.  This servlet basically creates a new 
> List, then replaces
> > the existing one (uses the same name for the object).  My 
> second servlet
> > (Struts) simply accesses this List in a read-only fashion - 
> no updates.  I
> > can write a basic spin-lock type of mechanism to ensure 
> that my Actions do
> > not try to access this List while my first servlet is 
> replacing the object,
> > but I'm wondering if there is an easier approach, possibly using a
> > synchronized block using the application object
> > 
> > Comments?
> > 
> 
> Synchronizing on the List instance won't help much, because 
> of the way you're
> replacing the old one with a new one -- but it's probably 
> unnecessary as well,
> since the servlet reading the old List and the servlet 
> creating the new List
> are never manipulating the same object instance.
> 
> If the servlet doing the modifying was doing it "in place" on 
> the existing List
> instance, then synchronizing on that instance would indeed be 
> appropriate.
> 
> > TIA!
> > 
> > Jerry Jalenak
> 
> Craig
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] Synchronized access to application-scoped object

2003-12-24 Thread Jerry Jalenak
Holiday Greetings to All!

Quick design question - Is it possible to synchronize an application-scoped
object between two servlets within the same web application?  I have a
servlet that I have written that maintains a List object that is stored in
application scope.  This servlet basically creates a new List, then replaces
the existing one (uses the same name for the object).  My second servlet
(Struts) simply accesses this List in a read-only fashion - no updates.  I
can write a basic spin-lock type of mechanism to ensure that my Actions do
not try to access this List while my first servlet is replacing the object,
but I'm wondering if there is an easier approach, possibly using a
synchronized block using the application object

Comments?

TIA!

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] HTML Select box

2003-12-19 Thread Jerry Jalenak
<[EMAIL PROTECTED] />

Thanks to everyone who responded.  Let me clarify on this:  If I set my
 to use a size=?? and set multiple="true", I can indeed select
multiple options.  The problem is, when I set the size parameter to
something like 10, I end up with a 10 items displayed in a rather large box
(I know, this is how it works!).  What I would rather have (and maybe I
simply can't do it) is to have a single line displayed with a 'down arrow'
(like what you would get without using the multiple="true" and with
size="1").  When you clicked on the down arrow, the box would expand
downward, and the user would then be able to select multiple options by
holding down the CTRL key.  Submitting the selection would send all of the
selected options to my Action.

Does this make any more sense?

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Brice Ruth [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 19, 2003 2:03 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] HTML Select box
> 
> 
> right, but that's in a multi-select box, not in a drop-down select.
> 
> Craig R. McClanahan wrote:
> 
> >Quoting Brice Ruth <[EMAIL PROTECTED]>:
> >
> >  
> >
> >> From a GUI perspective, how would you select multiple things in a 
> >>drop-down? I can't actually recall ever seeing this type of widget 
> >>anywhere (irrespective of HTML).
> >>
> >>
> >>
> >
> >In HTML, this is triggered by the "multiple" attribute on 
> the  element. 
> >If you're using  tag, must add multiple="true".
> >
> >In a browser, it's the usual technique for multiple 
> selections -- shift-click
> >selects everything between the previous point and the 
> current point, while
> >control-click adds the individual item you're currently pointing at.
> >
> >  
> >
> >>Could you send an example?
> >>
> >>
> >>
> >
> >Craig
> >
> >
> >  
> >
> >>Jerry Jalenak wrote:
> >>
> >>
> >>
> >>>Hi All,
> >>>
> >>>Can't seem to find a way to do this, even though I've seen 
> it done (I
> >>>think).  What I need is a HTML select box where the size 
> parameter=1 (so I
> >>>get a true drop-down, not a scrolling box) AND the ability 
> to select
> >>>multiple options within the select box.  Right now if I 
> set the multiple
> >>>parameter I get a scrolling box.  I'm using an 
> optionsCollection tag to
> >>>generate my option list (not that I think it has anything 
> to do with my
> >>>problem  8-)  I suspect there is a JavaScript solution out 
> there, but I
> >>>can't seem to google it.  Does anyone have any ideas?
> >>>
> >>>TIA!
> >>>
> >>>Jerry Jalenak
> >>>Development Manager, Web Publishing
> >>>LabOne, Inc.
> >>>10101 Renner Blvd.
> >>>Lenexa, KS  66219
> >>>(913) 577-1496
> >>>
> >>>[EMAIL PROTECTED]
> >>>
> >>>
> >>>This transmission (and any information attached to it) may 
> be confidential
> >>>  
> >>>
> >>and
> >>
> >>
> >>>is intended solely for the use of the individual or entity 
> to which it is
> >>>addressed. If you are not the intended recipient or the 
> person responsible
> >>>  
> >>>
> >>for
> >>
> >>
> >>>delivering the transmission to the intended recipient, be 
> advised that you
> >>>have received this transmission in error and that any use, 
> dissemination,
> >>>forwarding, printing, or copying of this information is strictly
> >>>  
> >>>
> >>prohibited.
> >>
> >>
> >>>If you have received this transmission in error, please 
> immediately notify
> >>>LabOne at the following email address: 
> [EMAIL PROTECTED]
> >>>
> >>>
> >>>---
> --
> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>For additional commands, e-mail: 
> [EMAIL PROTECTED]
> >>>
> >>> 
> >>>
> >>>  
> >>>
> >>-- 
> >>Brice D. Ruth
> >>Sr

[OT] HTML Select box

2003-12-19 Thread Jerry Jalenak
Hi All,

Can't seem to find a way to do this, even though I've seen it done (I
think).  What I need is a HTML select box where the size parameter=1 (so I
get a true drop-down, not a scrolling box) AND the ability to select
multiple options within the select box.  Right now if I set the multiple
parameter I get a scrolling box.  I'm using an optionsCollection tag to
generate my option list (not that I think it has anything to do with my
problem  8-)  I suspect there is a JavaScript solution out there, but I
can't seem to google it.  Does anyone have any ideas?

TIA!

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] RE: File Download?

2003-12-04 Thread Jerry Jalenak
Jacob,

Thanks for the help.  I need to review the business requirements (again!)
and make sure that we are going down the right path.  I'm not sure a .zip
file will meet the clients needs; I'm also not sure that requiring them to
download each file individually will work for them either.  

Thanks again.

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 04, 2003 9:32 AM
> To: Struts Users Mailing List
> Subject: [OT] RE: File Download?
> 
> 
> That won't work (I don't believe so anyways).
> 
> You are better off displaying a page with a list of links to 
> these files and
> generate each one separately on a per request basis.  The 
> other thing to
> maybe look at is generating the file data as separate files, then use
> common's compress:
> 
> http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/compress/
> 
> To stream back a single zip.  I think onjava or google might 
> have an article
> on creating zip files.
> 
> The other thing to do is if you are using servlet 2.3 spec 
> with filters,
> look at using a gzip filter to speed up downloads from your 
> application.
> Javaworld has an article on this with sample code from Jason Hunter.
> 
> Jacob Hookom
> Senior Analyst/Programmer
> McKesson Medical-Surgical
> Golden Valley, Minnesota
> http://www.mckesson.com
> 
> -Original Message-
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, December 04, 2003 9:29 AM
> To: 'Struts Users Mailing List'
> Subject: RE: [OT] RE: File Download?
> 
> Jacob - 
> 
> Knew it had to be something easy  8-)
> 
> Second question - One of my requirements is that my users 
> need to ability to
> select multiple files from a list of available files.  I need 
> to be able to
> store each selected file individually on their hard drive.  Using your
> approach, can I flush the response buffer between each file 
> in order to do
> this?  Something along these lines:
> 
> 
> 
>   get the requested filename(s)
>   while (more filenames)
>   {
>       retrieve the file
>   set the content type
>   set the header
>   flush the response buffer (leaving the connection open)
>   }
> 
> 
> 
> Thanks!
> 
> Jerry Jalenak
> Development Manager, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> 
> [EMAIL PROTECTED]
> 
> 
> > -Original Message-
> > From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, December 04, 2003 9:04 AM
> > To: Struts Users Mailing List
> > Subject: [OT] RE: File Download?
> > 
> > 
> > This is what we use for file downloads (Excel/PDF files).
> > 
> > String contentType = this.beanWriter.getContentType();
> > response.setContentType(contentType);
> > response.setHeader("Content-Disposition","attachment;filename=\""
> > + this.beanWriter.getFileName(request) + "\"");
> > 
> > And have your struts action return null.
> > 
> > -Jacob
> > 
> > -Original Message-
> > From: Jerry Jalenak [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday, December 04, 2003 9:05 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: File Download?
> > 
> > I have a need to send generated image files from my web 
> > server to a file
> > stored on a users local hard drive - ie file download.  I've 
> > been googling
> > now for awhile and haven't really found anything (maybe my 
> > search criteria
> > is wrong).  Does anyone have any pointers on the best way 
> to do this?
> > 
> > Thanks!
> > 
> > Jerry Jalenak
> > Development Manager, Web Publishing
> > LabOne, Inc.
> > 10101 Renner Blvd.
> > Lenexa, KS  66219
> > (913) 577-1496
> > 
> > [EMAIL PROTECTED]
> > 
> > 
> > This transmission (and any information attached to it) may be 
> > confidential
> > and
> > is intended solely for the use of the individual or entity to 
> > which it is
> > addressed. If you are not the intended recipient or the 
> > person responsible
> > for
> > delivering the transmission to the intended recipient, be 
> > advised that you
> > have received this transmission in error and that any use, 
> > dissemination,
> > forwarding, printing, or copying of this information is 

RE: [OT] RE: File Download?

2003-12-04 Thread Jerry Jalenak
Jacob - 

Knew it had to be something easy  8-)

Second question - One of my requirements is that my users need to ability to
select multiple files from a list of available files.  I need to be able to
store each selected file individually on their hard drive.  Using your
approach, can I flush the response buffer between each file in order to do
this?  Something along these lines:



get the requested filename(s)
while (more filenames)
{
retrieve the file
set the content type
set the header
flush the response buffer (leaving the connection open)
}



Thanks!

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 04, 2003 9:04 AM
> To: Struts Users Mailing List
> Subject: [OT] RE: File Download?
> 
> 
> This is what we use for file downloads (Excel/PDF files).
> 
> String contentType = this.beanWriter.getContentType();
> response.setContentType(contentType);
> response.setHeader("Content-Disposition","attachment;filename=\""
>   + this.beanWriter.getFileName(request) + "\"");
> 
> And have your struts action return null.
> 
> -Jacob
> 
> -Original Message-
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, December 04, 2003 9:05 AM
> To: '[EMAIL PROTECTED]'
> Subject: File Download?
> 
> I have a need to send generated image files from my web 
> server to a file
> stored on a users local hard drive - ie file download.  I've 
> been googling
> now for awhile and haven't really found anything (maybe my 
> search criteria
> is wrong).  Does anyone have any pointers on the best way to do this?
> 
> Thanks!
> 
> Jerry Jalenak
> Development Manager, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> 
> [EMAIL PROTECTED]
> 
> 
> This transmission (and any information attached to it) may be 
> confidential
> and
> is intended solely for the use of the individual or entity to 
> which it is
> addressed. If you are not the intended recipient or the 
> person responsible
> for
> delivering the transmission to the intended recipient, be 
> advised that you
> have received this transmission in error and that any use, 
> dissemination,
> forwarding, printing, or copying of this information is 
> strictly prohibited.
> If you have received this transmission in error, please 
> immediately notify
> LabOne at the following email address: 
> [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



File Download?

2003-12-04 Thread Jerry Jalenak
I have a need to send generated image files from my web server to a file
stored on a users local hard drive - ie file download.  I've been googling
now for awhile and haven't really found anything (maybe my search criteria
is wrong).  Does anyone have any pointers on the best way to do this?

Thanks!

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] Stress Test

2003-11-24 Thread Jerry Jalenak
David,

Nothing. Nada. Zip. ZIlch.  The logs show basically no response; from the
client perspective the web app simply stops responding.  I suspect I've
either got a memory leak, or a database connectivity issue.  Hopefully I can
stress test this thing enough today to identify where in the code it fails.
Once I know where it fails I should be able to fix it.

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: David Friedman [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 24, 2003 9:52 AM
> To: Struts Users Mailing List
> Subject: RE: [OT] Stress Test
> 
> 
> So after 6 hours, what do your log files (web server and java 
> application
> server) show?  Do they show struts actions being performed? 
> Does it show out
> of memory errors?  Anything like that?
> 
> Regards,
> David
> 
> -Original Message-
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 24, 2003 10:05 AM
> To: '[EMAIL PROTECTED]'
> Subject: [OT] Stress Test
> 
> 
> Hi All,
> 
> I've got a problem with my current web app where it stops 
> responding after
> about 6 hours.  I need to set up a test environment and 
> simulate multiple
> logon's so I can trap my way through the code and figure out 
> where it is
> failing.  I think there is a tool available that can be used 
> to do this -
> HTTPerf (I think), but I'm not sure if this will do what I want.  Does
> anyone have any experience with this?
> 
> Thanks.
> 
> Jerry Jalenak
> Development Manager, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> 
> [EMAIL PROTECTED]
> 
> 
> This transmission (and any information attached to it) may be 
> confidential
> and
> is intended solely for the use of the individual or entity to 
> which it is
> addressed. If you are not the intended recipient or the 
> person responsible
> for
> delivering the transmission to the intended recipient, be 
> advised that you
> have received this transmission in error and that any use, 
> dissemination,
> forwarding, printing, or copying of this information is 
> strictly prohibited.
> If you have received this transmission in error, please 
> immediately notify
> LabOne at the following email address: 
> [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] Stress Test

2003-11-24 Thread Jerry Jalenak
Simon, Paul, and Vic - 

Thanks for the suggestions.  One initial glance it looks like JMeter will do
what I want, so I'm going to head down that path  8-)

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 24, 2003 9:05 AM
> To: '[EMAIL PROTECTED]'
> Subject: [OT] Stress Test
> 
> 
> Hi All,
> 
> I've got a problem with my current web app where it stops 
> responding after
> about 6 hours.  I need to set up a test environment and 
> simulate multiple
> logon's so I can trap my way through the code and figure out 
> where it is
> failing.  I think there is a tool available that can be used 
> to do this -
> HTTPerf (I think), but I'm not sure if this will do what I want.  Does
> anyone have any experience with this?
> 
> Thanks.
> 
> Jerry Jalenak
> Development Manager, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> 
> [EMAIL PROTECTED]
> 
> 
> This transmission (and any information attached to it) may be 
> confidential and
> is intended solely for the use of the individual or entity to 
> which it is
> addressed. If you are not the intended recipient or the 
> person responsible for
> delivering the transmission to the intended recipient, be 
> advised that you
> have received this transmission in error and that any use, 
> dissemination,
> forwarding, printing, or copying of this information is 
> strictly prohibited.
> If you have received this transmission in error, please 
> immediately notify
> LabOne at the following email address: 
> [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] Stress Test

2003-11-24 Thread Jerry Jalenak
Hi All,

I've got a problem with my current web app where it stops responding after
about 6 hours.  I need to set up a test environment and simulate multiple
logon's so I can trap my way through the code and figure out where it is
failing.  I think there is a tool available that can be used to do this -
HTTPerf (I think), but I'm not sure if this will do what I want.  Does
anyone have any experience with this?

Thanks.

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT - Design] Needing Fast Access to 300,000 Records

2003-11-06 Thread Jerry Jalenak
All,

Thanks for the comments.  It does appear that I am attempting to solve an
easy the most difficult way possible.  I'm going to go away now and spend
some time with my handy dandy SQL book

Thanks again!

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Vic Cekvenich [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 06, 2003 9:32 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [OT - Design] Needing Fast Access to 300,000 Records
> 
> 
> 
> [EMAIL PROTECTED] wrote:
> 
> > retrieving all the records because just in case the client 
> may need them does not look very efficient approach to me.
> 
> One never designs for all the exceptions of what might be, 
> that would be 
> a bad design.
> One designs for the likely case only, at least good designers do.
> The old 80/20 rule.
> 
> (Unlikely excetiopns you deal with by doing exception procesing)
> But you design for the rule, else you are fighting your design.
> 
> 
> .V
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT - Design] Needing Fast Access to 300,000 Records

2003-11-06 Thread Jerry Jalenak
Vic - 

This is still in the design stage, so I don't have a SQL statement to
provide.  I'm looking for the best approach to handling what is essentially
a table lookup where I need two keys (BILLING_ACCOUNT and ACCOUNT_CODE)

The scenario is this:  When one of my clients logs on to the webapp, the app
determines the BILLING_ACCOUNTs the client has assigned, then explodes the
BILLING_ACCOUNTs into the composite ACCOUNT_CODES.  As an example, I've got
one client with 54 BILLING_ACCOUNTs; these explode to over 30,000
ACCOUNT_CODES.  I am trying to eliminate 30,000 db calls to get the account
information - that's why I'm looking to pre-load the table(s) in a plug-in
and access everything in memory.

Make sense?

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Vic Cekvenich [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 06, 2003 8:46 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [OT - Design] Needing Fast Access to 300,000 Records
> 
> 
> 
> Jerry Jalenak wrote:
> > Hi All - 
> > 
> > I've been trying to figure out a good way of handling 
> something, and just
> > can't quite seem to get a grip on the best approach.  
> Here's what I've got:
> > 
> > Two database tables - Table 1 has a BILLING_CODE and an 
> ACCOUNT_CODE.  Table
> > 2 has the ACCOUNT_CODE and other account information (name, 
> address, etc.)
> > The tables are linked by ACCOUNT_CODE.
> > 
> > Table 1:
> > Table 2:
> > BILLING_CODEACCOUNT_CODE
> > ACCOUNT_CODENAMEADDRESS ...
> > 1234ABC1
> > ABC1blahblah
> > 1234ABC2
> > ABC2blahblah
> > 1234ABC3
> > ABC3blahblah
> > 5678DEF1
> > DEF1blahblah
> > 5678DEF2
> > DEF2blahblah
> > 
> > I need to be able to rapidly access the information in 
> table 2 either
> > through the BILLING_CODE, or directly through the 
> ACCOUNT_CODE.  I can
> > create a POJO containing the BILLING_CODE and a List object 
> to hold a second
> > POJO for the table 2 info.  Or I can use a Map.  Either way 
> doesn't give me
> > a good method of accessing the table 2 information based on 
> ACCOUNT_CODE.
> > 
> > Two other bits of info - the combined number of records 
> exceeds 300,000, so
> > I have a scaling issue.  Second, I'd like to load 
> everything in a plug-in
> > using iBatis dbLayer and store it in application scope (to 
> eliminate db
> > calls as the webapp is used.)  
> 
> That is ridiculous!!
> Why stop there, why not just write your own SQL engine in Java?
> Say 300,000 records times 500 bytes for each record in 
> memory... I can't 
> begin to ...
> 
> You can easily get sub second response scelable, that is a 
> very, very, 
> small database for a SQL engine. Post the the SQL command 
> that is giving 
> you performance problem. What DB are you using?
> iBatis is nicely going to cache duplicate requests and flush, that's 
> all, its a DAO.
> .V
> 
> > 
> > Does anyone have any experience in handling something like 
> this?  How did
> > you do it?
> > 
> > Thanks...
> > 
> > Jerry Jalenak
> > Development Manager, Web Publishing
> 
> 
> 
> 
> > LabOne, Inc.
> > 10101 Renner Blvd.
> > Lenexa, KS  66219
> > (913) 577-1496
> > 
> > [EMAIL PROTECTED]
> > 
> > 
> > This transmission (and any information attached to it) may 
> be confidential and
> > is intended solely for the use of the individual or entity 
> to which it is
> > addressed. If you are not the intended recipient or the 
> person responsible for
> > delivering the transmission to the intended recipient, be 
> advised that you
> > have received this transmission in error and that any use, 
> dissemination,
> > forwarding, printing, or copying of this information is 
> strictly prohibited.
> > If you have received this transmission in error, please 
> immediately notify
> > LabOne at the following email address: 
> [EMAIL PROTECTED]
> 
> -- 
> Victor Cekvenich,
> Struts Instructor
> (215) 321-9146
> 
> Advanced Struts Training
> <http://basebeans.com/do/cmsPg?content=TRAINING> Server Side Java
> traini

[OT - Design] Needing Fast Access to 300,000 Records

2003-11-06 Thread Jerry Jalenak
Hi All - 

I've been trying to figure out a good way of handling something, and just
can't quite seem to get a grip on the best approach.  Here's what I've got:

Two database tables - Table 1 has a BILLING_CODE and an ACCOUNT_CODE.  Table
2 has the ACCOUNT_CODE and other account information (name, address, etc.)
The tables are linked by ACCOUNT_CODE.

Table 1:
Table 2:
BILLING_CODEACCOUNT_CODE
ACCOUNT_CODENAMEADDRESS ...
1234ABC1
ABC1blahblah
1234ABC2
ABC2blahblah
1234ABC3
ABC3blahblah
5678DEF1
DEF1blahblah
5678DEF2
DEF2blahblah

I need to be able to rapidly access the information in table 2 either
through the BILLING_CODE, or directly through the ACCOUNT_CODE.  I can
create a POJO containing the BILLING_CODE and a List object to hold a second
POJO for the table 2 info.  Or I can use a Map.  Either way doesn't give me
a good method of accessing the table 2 information based on ACCOUNT_CODE.

Two other bits of info - the combined number of records exceeds 300,000, so
I have a scaling issue.  Second, I'd like to load everything in a plug-in
using iBatis dbLayer and store it in application scope (to eliminate db
calls as the webapp is used.)  

Does anyone have any experience in handling something like this?  How did
you do it?

Thanks...

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT - JavaScript] Setting value on a

2003-10-29 Thread Jerry Jalenak
Melissa,

Tried this under IE and it doesn't work.  I guess I'll have to add a hidden
field and pass the value I want through it - that way I can disable the
select box and still send the value through the request header.

Thanks!

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Melissa L Kelley [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 29, 2003 11:39 AM
> To: Struts Users Mailing List
> Subject: RE: [OT - JavaScript] Setting value on a 
> 
> 
> On Wed, 29 Oct 2003, Jerry Jalenak wrote:
> 
> > Melissa / James -
> >
> > Thanks for the replies.  It does have something to do with 
> setting the
> > 'disabled' attribute to 'true'.  Unfortunately, per W3C 
> spec, the 
> > tag doesn't support a 'readonly' attribute, only a 
> 'disabled' attribute.  Do
> > I need to disable the options?  or is there a better way to 
> not allow a user
> > to select a different option?
> >
> >
> 
> You could set all the options but the one you want selected 
> to disabled.
> I think how it will work in Mozilla is the select menu will still be a
> drop down, but all the disabled options will be grayed out and not
> selectable. I don't think IE will support this though. Of 
> course, since
> you'd be validating on the server side, users who could still select
> something else would get a nice message telling them that 
> valueB can only
> be foo when valueA is bar, yes?
> 
> 
> --
> Melissa L Kelley
> [EMAIL PROTECTED]
> www.stuology.net
> --
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT - JavaScript] Setting value on a

2003-10-29 Thread Jerry Jalenak
Melissa / James - 

Thanks for the replies.  It does have something to do with setting the
'disabled' attribute to 'true'.  Unfortunately, per W3C spec, the 
tag doesn't support a 'readonly' attribute, only a 'disabled' attribute.  Do
I need to disable the options?  or is there a better way to not allow a user
to select a different option?



Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Melissa L Kelley [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 29, 2003 11:08 AM
> To: Struts Users Mailing List
> Subject: Re: [OT - JavaScript] Setting value on a 
> 
> 
> On Wed, 29 Oct 2003, Jerry Jalenak wrote:
> 
> > I've got two radio buttons on a form.  If the user clicks 
> the second radio
> > button, I need to force the value of a following  to a
> > specific value, and disable the select.  So, using 
> JavaScript, on my radio
> > button I fire an onclick event that run a real simple 
> javascript function.
> > In this function I've tried using
> 
> [...]
> 
> When you say "disable the select", are you using the disabled 
> attribute
> for the select tag to accomplish this? If so, then the value 
> of that form
> element will not be sent with the HTTP request. If you want 
> them to not
> change it, set it to readonly instead of disabled.
> 
> 
> > 'Doh!' moment, but how do I do this?
> >
> > TIA!
> >
> > Jerry Jalenak
> 
> 
> 
> --
> Melissa L Kelley
> [EMAIL PROTECTED]
> www.stuology.net
> --
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT - JavaScript] Setting value on a

2003-10-29 Thread Jerry Jalenak
Been screwing around with this all morning, and can't seem to find an
answer.

I've got two radio buttons on a form.  If the user clicks the second radio
button, I need to force the value of a following  to a
specific value, and disable the select.  So, using JavaScript, on my radio
button I fire an onclick event that run a real simple javascript function.
In this function I've tried using 

document.formName.selectVar.value =  // is
accepted, but the  isn't passed to my form bean
document.formName.selectVar.option[0].selected = true   //  ditto
document.formName.selectVar.option[0].value = 
// ditto
document.formName.selectVar.option[0].isSelected = true //
ditto

JavaScript seems to accept all of these formats, but the setter method in my
form bean for 'selectVar' is never getting called.  This is going to be a
'Doh!' moment, but how do I do this?

TIA!

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Poll] Action Form data types

2003-10-13 Thread Jerry Jalenak
#2

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 13, 2003 2:37 PM
> To: [EMAIL PROTECTED]
> Cc: Green, Matt
> Subject: [Poll] Action Form data types
> 
> 
> Here's my weekly(ish) question:
> For the purposes of this discussion, ActionForms also mean 
> DynaActionForms
> and the like...
> Where does everyone cast their (String) request parameters to 
> the 'proper'
> datatype?
> 
> #1  My ActionForms only have Strings, I manually cast stuff 
> somewhere else.
> #2  My ActionForms only have Strings, I let (BeanUtils, 
> JDBC,...) cast stuff
> for me somewhere else.
> #3  My ActionForms have java Datatypes, I let Struts(yeah, 
> beanutils, I
> know) cast stuff for me.
> #4  I use strings for everything, I don't need to cast.
> 
> -
> This message and its contents (to include attachments) are 
> the property of Kmart Corporation (Kmart) and may contain 
> confidential and proprietary information. You are hereby 
> notified that any disclosure, copying, or distribution of 
> this message, or the taking of any action based on 
> information contained herein is strictly prohibited. 
> Unauthorized use of information contained herein may subject 
> you to civil and criminal prosecution and penalties. If you 
> are not the intended recipient, you should delete this 
> message immediately.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] JSTL Taglib Definition in WEB.XML

2003-10-08 Thread Jerry Jalenak
All,

After reading the JSTL docs on the Jakarta web site, and googling for about
an hour, I can't seem to find a answer.  So, for all of you JSTL guru's out
there, here's the question:

In WEB.XML, do I need to specify the '-rt' taglibs?  In other words,
do I need both of these, or only one or 'em?



/c-rt


/WEB-INF/tld/c-rt.tld





/c


/WEB-INF/tld/c.tld



... etc etc etc ...

Thanks!


Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Action Design Question

2003-09-26 Thread Jerry Jalenak
In the latest nightly builds there is a 'MappingDispatchAction' that does
this for you (takes the parameter directly).

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Nathan Rogers [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 26, 2003 11:00 AM
> To: Struts Users Mailing List
> Subject: Re: Action Design Question
> 
> 
> I don't know if this was the 'right' thing to do, but I extended 
> DispatchAction, overrode the execute method to use the 
> hardcoded value 
> rather than looking up a request parameter, and pass that along to 
> dispatchMethod.  My actions then inherit from this modified 
> class.  You 
> can safely cut out the lines with ServletContext if you don't 
> care about 
> logging invalid parameters.
> 
> Here's the source
> 
> /**
> Overrides the execute method of DispatchAction so that rather
> than use the parameter to determine which request parameter
> contains the action to execute, it uses the parameter property
> directly
> 
> @param mapping ActionMapping
> @param form Form associated with action
> @param HttpServletRequest Current request object
> @param HttpServletResponse Current response stream
> **/
> public ActionForward execute(ActionMapping mapping,
>   ActionForm form,
>HttpServletRequest request,
>HttpServletResponse response)
>throws Exception
>{
>  String parameter = mapping.getParameter();
>  if (parameter == null) {
>   String error = "Could not locate the requested forward";
>   ServletContext context = getServlet().getServletContext();
>   ServletContextWriter output = new ServletContextWriter(context);
>   output.write(error);
>   output.flush();
>   
>  
> response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERRO
> R, error);
>  return null;
>  }
> 
>return dispatchMethod(mapping, form, request, response, parameter);
>}
> 
> -- 
> Nathan Rogers
> Library Technology Group
> 312F Memorial Library
> 728 State Street
> 261-1409
> 
> Graham Lounder wrote:
> 
> > Hey all,
> > 
> > After reading the "[Poll] action mappings" thread, I now 
> have a couple of
> > design questions.  I've got a lot of actions right  now and 
> I'd like to
> > group related functionality into one action.  I'm thinking 
> of extending the
> > DispatchAction and creating functions to
> > search/view/create/update/delete/load my objects.  I'd like 
> to create
> > separate action mappings for each function.  My question is, can I
> > "hardcode" my dispatch parameter in the action mapping or 
> do I have to send
> > it in ever request from the page?
> > 
> > Thanks in advance,
> > Graham
> > 
> > 
> ==
> ==
> > Graham Lounder - Java Developer
> > CARIS Spatial Components Division
> > [EMAIL PROTECTED]
> > Phone:  (506) 458-8533
> > Fax:(506) 459-3849
> > 
> ==
> ==
> > NO BINDING CONTRACT WILL RESULT FROM THIS EMAIL UNTIL SUCH TIME
> > AS A WRITTEN DOCUMENT IS SIGNED ON BEHALF OF THE COMPANY.
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: YASJR, Part Duex

2003-09-11 Thread Jerry Jalenak
Let only the sheer number of struts user who downloaded the release
candidates prior to the final.  If there was malicious code in Struts, it
wouldn't have taken long for several users to have identified it, and
screamed loudly on this list and on the developers list.  I would rather use
a product that has had a world-wide community of people looking at, than a
closed product (i.e. ANYTHING from M$).  Look at the constant stream of
security flaws in Windoze - don't you think that if a several thousand users
could dig through Windoze, we might find more than a few of these BEFORE
they are exploited by those with less than honorable intentions?

my $.02


Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Steve Raeburn [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 11, 2003 11:58 AM
> To: Struts Users Mailing List
> Subject: RE: YASJR, Part Duex
> 
> 
> Well I would say that software the passed QA containing 
> malicious code was
> faulty!
> 
> My point was that your company should trust you to judge the 
> quality of the
> code you're working with - wherever it comes from - and that 
> you should have
> a reasonably high degree of confidence in Struts code because:
> 
> 1) You can review the code yourself.
> 2) Thousands of other developers also review the changes.
> 3) The committers review changes.
> 4) Only a small number of people actually have commit access.
> 
> Good luck with your project!
> 
> Steve
> 
> 
> > -Original Message-
> > From: Gregory F. March [mailto:[EMAIL PROTECTED]
> > Sent: September 11, 2003 8:51 AM
> > To: Struts Users Mailing List
> > Subject: Re: YASJR, Part Duex
> >
> >
> >
> > On Sep 11, 2003, "Steve Raeburn" <[EMAIL PROTECTED]>  wrote:
> >
> >  |Who do they sue if the code you've written in-house is faulty?
> >
> > Faulty code was not what I was referring to.  Malicious code, hacks,
> > timebombs, etc. was.  In the case of "in house" 
> maliciousness, you lose
> > your job, lose benefits and legal action will be taken 
> against you.  In
> > the case of external maliciousness, restitution for damages 
> will usually
> > be sought.
> >
> > Quality is another issue, and I can defend struts pretty 
> well on that
> > front.
> >
> > In any case, I think this is digressing.  I've gotten some 
> great points
> > from all of you - thanks!!
> >
> > Cheers,
> >
> > /greg
> >
> > --
> > Gregory F. March-=-http://www.gfm.net:81/~march-=-
> > AIM:GfmNet
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Converting a ResultSet to a List of POJOs

2003-09-09 Thread Jerry Jalenak
Matt - 

After reading your post here and on the iBatis forum on SF, I thought I'd
run some tests on my authentication process as well.  I'm using a static
block to initially read in the sql-map.xml file, and am using the
sqlMap.executeQueryForObject method w/o a 'true' DAO (calling the method
directly from my business model).  Here's what I found:

first call to initialize (read) the sql-map.xml file:   .688
first call to executeQueryForObject:6.485
(ouch!)
subsequent calls to executeQueryForObject:  .031 - .032
(tested multiple times)

I think this agrees with what you saw, and with what Clinton indicated - the
first call is *really* slow due to the additional initialization that
occurs.  Once that is complete, iBatis seems to be a fast as native JDBC...


Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Matt Raible [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 08, 2003 6:13 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Converting a ResultSet to a List of POJOs
> 
> 
> Thanks to all for your suggestions.  I did some number 
> comparisons b/w the
> "standard" way (rs.next() ... set, set, set), ibatis, and
> ResultSetUtils.getCollection() from scaffold.  Here's what I found:
> 
> 1.  Standard way - 0.24 seconds
> 2.  ibatis - 5+ seconds (ugh! - maybe I'm doing something 
> wrong, more info
> here: http://tinyurl.com/mod4)
> 3.  ResultSetUtils.getCollection - 0.27 seconds
> 
> So I'm going with #3 as it'll speed up dev time and doesn't 
> have much of a
> performance hit.
> 
> Thanks,
> 
> Matt
> 
> -Original Message-
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 08, 2003 7:09 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Converting a ResultSet to a List of POJOs
> 
> 
> +1.  Simplest method I've seen to go from a ResultSet to a 
> Collection of
> JavaBeans
> 
> Jerry Jalenak
> Team Lead, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> 
> [EMAIL PROTECTED]
> 
> 
> > -Original Message-
> > From: Ted Husted [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, September 06, 2003 10:34 AM
> > To: Struts Users Mailing List
> > Subject: Re: Converting a ResultSet to a List of POJOs
> > 
> > 
> > I'm about to try iBATIS  for a new phase of a 
> > project we 
> > started in Hibernate. Hibernate is cool, but I think 
> > something simpler 
> > might be a better fit. (Not sure if we really need that 
> > finely grained 
> > object layer after all :)
> > 
> > It will let you remove the SQL to a simple XML file and give that 
> > statement a name. You can then call the named statement from 
> > your Java 
> > code and get a POJO result. Like what I was doing in Scaffold, only 
> > better =:0)
> > 
> > -Ted.
> > 
> > Matt Raible wrote:
> > > Dear Struts Experts,
> > > 
> > > I recently started a new project where most of the backend 
> > code is already
> > > written with JDBC and ResultSets.  The ResultSets are 
> > iterated through and a
> > > POJOs values are set using 
> > pojo.setName(rs.getString("...")), etc. - you get
> > > the point.  I'm wondering if there's an easier way - so I 
> > could do something
> > > like this:
> > > 
> > > ResultSet rs = stmt.executeQuery("SELECT ...");
> > > List objects = FancyUtilitity.convertResultSetToListOfObjects(rs,
> > > object.class);
> > > 
> > > Hibernate let me do this very simply - and I miss the fact 
> > that I could type
> > > a line or two to get a List of POJOs.  
> > > 
> > >   List users = ses.createQuery("from u in class " + User.class
> > >+ "order by u.name").list();
> > > 
> > > I've looked at the RowSetDynaClass 
> > (http://tinyurl.com/mekh), which has an
> > > interesting way of doing this - is this the "recommended" 
> > approach in the
> > > JDBC world?  Here's an example using it:
> > > 
> > >ResultSet rs = stmt.executeQuery("SELECT ...");
> > >RowSetDynaClass rsdc = new RowSetDynaClass(rs);
> > >rs.close();
> > >stmt.close();
> > >...;// Return connection to pool
> > &g

RE: [Validator] E-Mail Verification

2003-09-08 Thread Jerry Jalenak


Some time ago I needed an e-mail regular expression, and found this in a
book on JavaScript.  Seemed to work OK at the time.


/^\w(\.?[\w-])[EMAIL 
PROTECTED](\.?[-\w])*\.([a-z]{3}(\.[a-z]{2})?|[a-z]{2}(\.[a-z]{2})?)
$/i 




Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 08, 2003 3:45 PM
> To: Struts Users Mailing List
> Subject: Re: [Validator] E-Mail Verification
> 
> 
> --- Robert Leland <[EMAIL PROTECTED]> wrote:
> > David Graham wrote:
> > 
> > >--- Jerry Jalenak <[EMAIL PROTECTED]> wrote:
> > >  
> > >
> > >>Is there a published specification on e-mail addresses?  
> > >>
> > >>
> > >
> > >I believe it's RFC 822.
> > >
> > >  
> > >
> > >>The reason I
> > >>ask is
> > >>that we are using the 'email' validator, and it's 
> accepting as valid
> > >>e-mail
> > >>addresses such as 'u-+-+%^_/[EMAIL PROTECTED]'.  I didn't think
> > Validator
> > >>would accept these, but apparently is it.  If there's not an
> > established
> > >>spec for e-mail addresses, then I would assume that 
> anything goes
> > >>
> > >>
> > >
> > >  
> > >
> > I believe that the name part needs to be quoted. However, I believe 
> > currently validator will still
> > count this as a valid email. I haven't gotten around to 
> tweaking the 
> > regexp. To handle these cases
> > the user name pattern/expression will need to increase in 
> complexity by 
> > a factor of 3 or so.
> > How about an option that would allow only struct user names 
> checking,
> > ie [a-z][A-Z] and '.'. 
> 
> +1 on the new option but I think the allowed characters should be 
> 
> a-zA-Z0-9_.-
> 
> 
> > The clunky part is both the client and server 
> > versions of the regexp
> > need to change. I believe I would actually like to make the 
> client side 
> > checking more course,
> > ie allow any email in the form of [EMAIL PROTECTED], then let the 
> java take care 
> > of full validation,
> > what do you think ?
> 
> +1.  Javascript is merely a convenience for the user and it's 
> a pain to
> maintain this complex logic in 2 places.
> 
> David
> 
> > 
> > 
> > 
> > >Unfortunately, I think that's a valid email address as 
> defined in the
> > RFC.
> > >
> > >David
> > >
> > >  
> > >
> > >>Comments?
> > >>
> > >>Jerry Jalenak
> > >>Team Lead, Web Publishing
> > >>LabOne, Inc.
> > >>10101 Renner Blvd.
> > >>Lenexa, KS  66219
> > >>(913) 577-1496
> > >>
> > >>[EMAIL PROTECTED]
> > >>
> > >>
> > >>This transmission (and any information attached to it) may be
> > >>confidential and is intended solely for the use of the 
> individual or
> > >>entity to which it is addressed. If you are not the 
> intended recipient
> > >>or the person responsible for delivering the transmission to the
> > >>intended recipient, be advised that you have received this
> > transmission
> > >>in error and that any use, dissemination, forwarding, printing, or
> > >>copying of this information is strictly prohibited. If you have
> > received
> > >>this transmission in error, please immediately notify 
> LabOne at the
> > >>following email address: [EMAIL PROTECTED]
> > >>
> > >>
> > >>
> > 
> >>
> -
> > >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >>For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > >>
> > >>
> > >>
> > >
> > >
> > >__
> > >Do you Yahoo!?
> > >Yahoo! SiteBuilder - Free, easy-to-use web site design software
> > >http://sitebuilder.yahoo.com
> > >
> > 
> >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > >
> > >
> > >
> > >  
>

RE: Converting a ResultSet to a List of POJOs

2003-09-08 Thread Jerry Jalenak
+1.  Simplest method I've seen to go from a ResultSet to a Collection of
JavaBeans....

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Ted Husted [mailto:[EMAIL PROTECTED]
> Sent: Saturday, September 06, 2003 10:34 AM
> To: Struts Users Mailing List
> Subject: Re: Converting a ResultSet to a List of POJOs
> 
> 
> I'm about to try iBATIS  for a new phase of a 
> project we 
> started in Hibernate. Hibernate is cool, but I think 
> something simpler 
> might be a better fit. (Not sure if we really need that 
> finely grained 
> object layer after all :)
> 
> It will let you remove the SQL to a simple XML file and give that 
> statement a name. You can then call the named statement from 
> your Java 
> code and get a POJO result. Like what I was doing in Scaffold, only 
> better =:0)
> 
> -Ted.
> 
> Matt Raible wrote:
> > Dear Struts Experts,
> > 
> > I recently started a new project where most of the backend 
> code is already
> > written with JDBC and ResultSets.  The ResultSets are 
> iterated through and a
> > POJOs values are set using 
> pojo.setName(rs.getString("...")), etc. - you get
> > the point.  I'm wondering if there's an easier way - so I 
> could do something
> > like this:
> > 
> > ResultSet rs = stmt.executeQuery("SELECT ...");
> > List objects = FancyUtilitity.convertResultSetToListOfObjects(rs,
> > object.class);
> > 
> > Hibernate let me do this very simply - and I miss the fact 
> that I could type
> > a line or two to get a List of POJOs.  
> > 
> >   List users = ses.createQuery("from u in class " + User.class
> >+ "order by u.name").list();
> > 
> > I've looked at the RowSetDynaClass 
> (http://tinyurl.com/mekh), which has an
> > interesting way of doing this - is this the "recommended" 
> approach in the
> > JDBC world?  Here's an example using it:
> > 
> >ResultSet rs = stmt.executeQuery("SELECT ...");
> >RowSetDynaClass rsdc = new RowSetDynaClass(rs);
> >rs.close();
> >stmt.close();
> >...;// Return connection to pool
> >List rows = rsdc.getRows();
> >...;   // Process the rows as desired
> > 
> > 
> > Thanks,
> > 
> > Matt
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -- 
> Ted Husted,
>Junit in Action  - <http://www.manning.com/massol/>,
>Struts in Action - <http://husted.com/struts/book.html>,
>JSP Site Design  - 
> <http://www.amazon.com/exec/obidos/ISBN=1861005512>.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Validator] E-Mail Verification

2003-09-08 Thread Jerry Jalenak
David / Tero - 

Thanks for the guidance.  The RFC822 spec is what I was looking for

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Paananen, Tero [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 08, 2003 10:34 AM
> To: 'Struts Users Mailing List'
> Subject: RE: [Validator] E-Mail Verification
> 
> 
> > Is there a published specification on e-mail addresses?  The 
> > reason I ask is
> > that we are using the 'email' validator, and it's accepting 
> > as valid e-mail
> > addresses such as 'u-+-+%^_/[EMAIL PROTECTED]'.  I didn't 
> > think Validator
> > would accept these, but apparently is it.  If there's not an 
> > established
> > spec for e-mail addresses, then I would assume that 
> anything goes
> > 
> > Comments?
> 
> There was discussion about this earlier on the mailing
> list. Search the archives for "email validation RFC"
> or some such.
> 
> There's an RFC that covers what're valid email addresses.
> 
> Your example looks perfectly valid to me...
> 
>   -TPP
> 
> -
> This email may contain confidential and privileged material 
> for the sole use of the intended recipient(s). Any review, 
> use, retention, distribution or disclosure by others is 
> strictly prohibited. If you are not the intended recipient 
> (or authorized to receive for the recipient), please contact 
> the sender by reply email and delete all copies of this 
> message.  Also, email is susceptible to data corruption, 
> interception, tampering, unauthorized amendment and viruses. 
> We only send and receive emails on the basis that we are not 
> liable for any such corruption, interception, tampering, 
> amendment or viruses or any consequence thereof.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Validator] E-Mail Verification

2003-09-08 Thread Jerry Jalenak
Is there a published specification on e-mail addresses?  The reason I ask is
that we are using the 'email' validator, and it's accepting as valid e-mail
addresses such as 'u-+-+%^_/[EMAIL PROTECTED]'.  I didn't think Validator
would accept these, but apparently is it.  If there's not an established
spec for e-mail addresses, then I would assume that anything goes

Comments?

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] MVC2 Diagram

2003-09-03 Thread Jerry Jalenak
All - Thanks to everyone who replied either to the list or directly.  Jeff -
thank in particular for the link and the note on Chuck's book.



Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Jeff Kyser [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 03, 2003 8:50 AM
> To: Struts Users Mailing List
> Subject: Re: [OT] MVC2 Diagram
> 
> 
> The Chuck Cavaness (Jakarta Struts) book also has both
> Model 1 and Model 2 diagrams on page 7.
> 
> -jeff
> 
> On Wednesday, September 3, 2003, at 08:30  AM, Jerry Jalenak wrote:
> 
> > Does anyone have a simplified diagram of the MVC2 
> architecture?  I'm 
> > needing
> > to include one in a presentation that I am giving to a non-technical
> > audience... and I either haven't had enough coffee this morning, or 
> > I've
> > completely forgotten how to use google - I can't seem to find 
> > anything! :-)
> >
> > Thanks!
> >
> > Jerry Jalenak
> > Team Lead, Web Publishing
> > LabOne, Inc.
> > 10101 Renner Blvd.
> > Lenexa, KS  66219
> > (913) 577-1496
> >
> > [EMAIL PROTECTED]
> >
> >
> > This transmission (and any information attached to it) may be 
> > confidential and is intended solely for the use of the 
> individual or 
> > entity to which it is addressed. If you are not the 
> intended recipient 
> > or the person responsible for delivering the transmission to the 
> > intended recipient, be advised that you have received this 
> > transmission in error and that any use, dissemination, forwarding, 
> > printing, or copying of this information is strictly prohibited. If 
> > you have received this transmission in error, please immediately 
> > notify LabOne at the following email address: 
> > [EMAIL PROTECTED]
> >
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] MVC2 Diagram

2003-09-03 Thread Jerry Jalenak
Does anyone have a simplified diagram of the MVC2 architecture?  I'm needing
to include one in a presentation that I am giving to a non-technical
audience... and I either haven't had enough coffee this morning, or I've
completely forgotten how to use google - I can't seem to find anything! :-)

Thanks!

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: J2EE IDE

2003-08-27 Thread Jerry Jalenak
I agree with David.  Originally we were using Netbeans, but quickly dropped
it due to stability issues (java.lang.Exceptions right in the middle of
editing a file, for example.)  We switched over to Eclipse 1.0; this version
had some odd behaviour at times, but didn't crash like Netbeans.  Version 2
and now 2.1 of Eclipse is super stable; I'm often on it for 8 or 10 hours a
day, and have never had a crash.  Boot time is much faster than version 1.
I'm not sure about the refresh time - do you mean you are running your Ant
build script every time?  We don't use the built-in Ant support (actually
don't use Ant at all), but the compile time when we modify a resource is
blindly fast.  I've never had to wait on a project re-build - never.

+1 for Eclipse.

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Hibbs, David [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 27, 2003 8:13 AM
> To: Struts Users Mailing List
> Subject: RE: J2EE IDE
> 
> 
> a) Boot time :  I haven't met a Java-based IDE that didn't 
> have high boot
> time.  That said, the core IDE boots pretty fast on my home 
> machine (1GHz
> P4) -- much faster than NetBeans. Caveat--I quit using 
> NetBeans because a)
> it was outclassed by Eclipse and b) I felt that the releases 
> were becoming
> less stable. 
> 
> b) Refresh time : huh?  I have no problems.  Perhaps you need 
> to disable the
> auto-compile feature?  From the menu bar, select
> Window->Preferences->Workbench, uncheck "Perform build 
> automatically on
> resource modification," and hit OK.
> 
> c) Crashes  I've been using eclipse both at home and at 
> work for almost
> a year and a half, and not once has it crashed.  (Yes, this 
> means I started
> using it even with the 1.0 release!)  So I don't know what 
> your problem is
> here if you are complaining about crashes--perhaps an 
> incompatible JRE or OS
> (or just don't have enough memory) ? Another possibility is a 
> bad plugin;
> have you installed any 3rd party plugins?
> 
> d) No, you're not right on these points. ;^)
> 
> David Hibbs
> Staff Programmer / Analyst
> American National Insurance Company
> 
> > -Original Message-
> > But eclipse has many problems at runtime.
> > 
> > Boot up time is too high.
> > Refresh time too high.
> > Crashes very often.
> > 
> > Am i  right on these points ?
> > 
> > thanks
> > -raj
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: throwing null servlet exception

2003-08-18 Thread Jerry Jalenak
David,

Thanks for the help.  I pulled the 8/18 nightly, recompiled against it, and
tested.  Looks like everything is working as it should.

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 18, 2003 1:24 PM
> To: 'Struts Users Mailing List'
> Subject: RE:  throwing null servlet exception
> 
> 
> --- Jerry Jalenak <[EMAIL PROTECTED]> wrote:
> > David,
> > 
> > That's basically what I thought.  However, when I change this
> > 
> > errors.add(ActionErrors.GLOBAL_ERROR, new ActionError((String)
> > ee.getErrorKey()));
> > 
> > to this
> > 
> > errors.add(ActionErrors.GLOBAL_ERROR, new ActionMessage((String)
> > ee.getErrorKey()));
> > 
> > my JSP blows up on the  statement (gives me a 'null'
> > servlet
> > exception.)  Since you've been working on making all this 
> play nice, do
> > I
> > just need to pull down a more recent nightly (I'm using 8/14
> > currently...)
> 
> Try the latest nightly.  The  tag was casting to 
> ActionError
> when pulling objects out of the message queue.  I changed 
> that to cast to
> ActionMessage which allows both ActionError and ActionMessage 
> to be used. 
> That may be what's causing your problem.
> 
> David
> 
> > 
> > Thanks!
> > 
> > Jerry Jalenak
> > Team Lead, Web Publishing
> > LabOne, Inc.
> > 10101 Renner Blvd.
> > Lenexa, KS  66219
> > (913) 577-1496
> > 
> > [EMAIL PROTECTED]
> > 
> > 
> > > -Original Message-
> > > From: David Graham [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, August 18, 2003 11:28 AM
> > > To: Struts Users Mailing List
> > > Subject: RE:  throwing null servlet exception
> > > 
> > > 
> > > --- Jerry Jalenak <[EMAIL PROTECTED]> wrote:
> > > > Partially answering my own question - 
> > > > 
> > > > Changing back to use ActionError (and ignoring the 
> > > deprecation messages
> > > > that
> > > > Eclipse spits out), I can get my messages to work.  
> Obviously the
> > > > problem is
> > > > that I am mixing ActionErrors and ActionMessage.  What is 
> > > the preferred
> > > > method?  It looks like ActionError has already been 
> deprecated; does
> > > > this
> > > > mean we should be using ActionMessages/ActionMessage 
> for returning
> > > > errors?
> > > 
> > > ActionErrors is a simple subclass of ActionMessages that 
> > > doesn't really do
> > > anything.  The same goes for ActionError vs. ActionMessage.  
> > > I made some
> > > changes this weekend to allow  to use 
> ActionMessage and
> > > ActionError objects.  So, you shouldn't be using ActionError 
> > > anymore but
> > > you still have to use ActionErrors because it's returned from 
> > > the forms'
> > > validate() method.  Just add ActionMessage objects to 
> ActionErrors.
> > > 
> > > I realize this is confusing but we need to get rid of 
> these duplicate
> > > classes.
> > > 
> > > David
> > > 
> > > > 
> > > > TIA!
> > > > 
> > > > Jerry Jalenak
> > > > Team Lead, Web Publishing
> > > > LabOne, Inc.
> > > > 10101 Renner Blvd.
> > > > Lenexa, KS  66219
> > > > (913) 577-1496
> > > > 
> > > > [EMAIL PROTECTED]
> > > > 
> > > > 
> > > > > -Original Message-
> > > > > From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
> > > > > Sent: Monday, August 18, 2003 10:51 AM
> > > > > To: '[EMAIL PROTECTED]'
> > > > > Subject:  throwing null servlet exception
> > > > > 
> > > > > 
> > > > > Using the nightly build from 8/14, I'm now getting a null 
> > > > > servlet exception
> > > > > on an  statement.  I've also had to change 
> > > from using
> > > > > ActionError to ActionMessage since it appears that 
> > > > > ActionError has been
> > > > > deprecated in 1.2.1.  I've tried changing everything 
> over to use
>

RE: throwing null servlet exception

2003-08-18 Thread Jerry Jalenak
David,

That's basically what I thought.  However, when I change this

errors.add(ActionErrors.GLOBAL_ERROR, new ActionError((String)
ee.getErrorKey()));

to this

errors.add(ActionErrors.GLOBAL_ERROR, new ActionMessage((String)
ee.getErrorKey()));

my JSP blows up on the  statement (gives me a 'null' servlet
exception.)  Since you've been working on making all this play nice, do I
just need to pull down a more recent nightly (I'm using 8/14 currently...)

Thanks!

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 18, 2003 11:28 AM
> To: Struts Users Mailing List
> Subject: RE:  throwing null servlet exception
> 
> 
> --- Jerry Jalenak <[EMAIL PROTECTED]> wrote:
> > Partially answering my own question - 
> > 
> > Changing back to use ActionError (and ignoring the 
> deprecation messages
> > that
> > Eclipse spits out), I can get my messages to work.  Obviously the
> > problem is
> > that I am mixing ActionErrors and ActionMessage.  What is 
> the preferred
> > method?  It looks like ActionError has already been deprecated; does
> > this
> > mean we should be using ActionMessages/ActionMessage for returning
> > errors?
> 
> ActionErrors is a simple subclass of ActionMessages that 
> doesn't really do
> anything.  The same goes for ActionError vs. ActionMessage.  
> I made some
> changes this weekend to allow  to use ActionMessage and
> ActionError objects.  So, you shouldn't be using ActionError 
> anymore but
> you still have to use ActionErrors because it's returned from 
> the forms'
> validate() method.  Just add ActionMessage objects to ActionErrors.
> 
> I realize this is confusing but we need to get rid of these duplicate
> classes.
> 
> David
> 
> > 
> > TIA!
> > 
> > Jerry Jalenak
> > Team Lead, Web Publishing
> > LabOne, Inc.
> > 10101 Renner Blvd.
> > Lenexa, KS  66219
> > (913) 577-1496
> > 
> > [EMAIL PROTECTED]
> > 
> > 
> > > -Original Message-
> > > From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, August 18, 2003 10:51 AM
> > > To: '[EMAIL PROTECTED]'
> > > Subject:  throwing null servlet exception
> > > 
> > > 
> > > Using the nightly build from 8/14, I'm now getting a null 
> > > servlet exception
> > > on an  statement.  I've also had to change 
> from using
> > > ActionError to ActionMessage since it appears that 
> > > ActionError has been
> > > deprecated in 1.2.1.  I've tried changing everything over to use
> > > ActionMessages, ActionMessage, and , but 
> > > still am getting
> > > the null servlet exception.  Has anyone else come across this?  
> > > 
> > > Jerry Jalenak
> > > Team Lead, Web Publishing
> > > LabOne, Inc.
> > > 10101 Renner Blvd.
> > > Lenexa, KS  66219
> > > (913) 577-1496
> > > 
> > > [EMAIL PROTECTED]
> > > 
> > > 
> > > This transmission (and any information attached to it) may be 
> > > confidential and is intended solely for the use of the 
> > > individual or entity to which it is addressed. If you are not 
> > > the intended recipient or the person responsible for 
> > > delivering the transmission to the intended recipient, be 
> > > advised that you have received this transmission in error and 
> > > that any use, dissemination, forwarding, printing, or copying 
> > > of this information is strictly prohibited. If you have 
> > > received this transmission in error, please immediately 
> > > notify LabOne at the following email address: 
> > > [EMAIL PROTECTED]
> > > 
> > > 
> > > 
> > > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > > 
> > > 
> > 
> > This transmission (and any information attached to it) may be
> > confidential and is intended solely for the use of the individual or
> > entity to which it is addressed. If you are not the 
> intended recipient
> > or the person responsible for delivering the transmission to the
> > intended recipient, be advised that you have received this 
> transmission
> > in error and that any use, disse

RE: throwing null servlet exception

2003-08-18 Thread Jerry Jalenak
Partially answering my own question - 

Changing back to use ActionError (and ignoring the deprecation messages that
Eclipse spits out), I can get my messages to work.  Obviously the problem is
that I am mixing ActionErrors and ActionMessage.  What is the preferred
method?  It looks like ActionError has already been deprecated; does this
mean we should be using ActionMessages/ActionMessage for returning errors?

TIA!

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 18, 2003 10:51 AM
> To: '[EMAIL PROTECTED]'
> Subject:  throwing null servlet exception
> 
> 
> Using the nightly build from 8/14, I'm now getting a null 
> servlet exception
> on an  statement.  I've also had to change from using
> ActionError to ActionMessage since it appears that 
> ActionError has been
> deprecated in 1.2.1.  I've tried changing everything over to use
> ActionMessages, ActionMessage, and , but 
> still am getting
> the null servlet exception.  Has anyone else come across this?  
> 
> Jerry Jalenak
> Team Lead, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> 
> [EMAIL PROTECTED]
> 
> 
> This transmission (and any information attached to it) may be 
> confidential and is intended solely for the use of the 
> individual or entity to which it is addressed. If you are not 
> the intended recipient or the person responsible for 
> delivering the transmission to the intended recipient, be 
> advised that you have received this transmission in error and 
> that any use, dissemination, forwarding, printing, or copying 
> of this information is strictly prohibited. If you have 
> received this transmission in error, please immediately 
> notify LabOne at the following email address: 
> [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



throwing null servlet exception

2003-08-18 Thread Jerry Jalenak
Using the nightly build from 8/14, I'm now getting a null servlet exception
on an  statement.  I've also had to change from using
ActionError to ActionMessage since it appears that ActionError has been
deprecated in 1.2.1.  I've tried changing everything over to use
ActionMessages, ActionMessage, and , but still am getting
the null servlet exception.  Has anyone else come across this?  

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to keep session info??

2003-08-15 Thread Jerry Jalenak


You're right - my mistake.  Redirect does cause a new request, not a new
session.   



Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Steve Raeburn [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 14, 2003 10:22 PM
> To: Struts Users Mailing List
> Subject: RE: How to keep session info??
> 
> 
> Redirect causes a new request, not a new session.
> 
> A few other things to try:
>  - Check that your server is actually sending a session 
> cookie or rewriting
> the URL
>(change your browser settings to see when the server sends 
> you a cookie)
>  - If your server supports it, try using an HttpSessionListener and
>HttpSessionAttributeListener to help debug when sessions 
> are created and
>attributes added/removed
>  - If you still can't see the problem, post the relevant code 
> from your
> action
> 
> Steve
> 
> 
> > -Original Message-
> > From: Nathan Coast [mailto:[EMAIL PROTECTED]
> > Sent: August 14, 2003 7:53 PM
> > To: Struts Users Mailing List
> > Subject: Re: How to keep session info??
> >
> >
> >  > Make sure that your  isn't doing a redirect (i.e.
> >  > redirect="true").  If I understand things correctly, a 
> redirect will
> > cause a
> >  > new session to be created...
> >  >
> >  > Jerry
> >
> > Are you sure?  I haven't looked at this area of the source 
> for a while
> > but I can't think any sensible reason why it would be 
> desirable for a
> > redirect to cause a new session.
> >
> > If the problem is that a variable is placed into the 
> session and then is
> > missing during the same request (and the forward is within the same
> > web-app), it sounds to me like there might be some erroneous code
> > somewhere.  I'd check for silly mistakes
> >
> > check you aren't putting null in the session,
> > check you aren't setting the var in the request rather than 
> the session,
> > check the var in the session isn't null immediately after 
> placing in the
> > session,
> > check the request isn't going via some code that calls
> > session.invalidate(), or is removing the var from the session.
> >
> > hope this helps
> >
> > Jerry Jalenak wrote:
> >
> > >
> > > -Original Message-
> > > From: development [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, August 14, 2003 8:42 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: How to keep session info??
> > >
> > >
> > > Hi all,
> > >
> > > I've got a LoginAction which inside its execute method 
> validates and
> > > saves the login info into HttpSession instance. It creates an
> > > ActionForward and returns it.
> > > All works good and it calls the new Action which I call 
> MembersAction
> > > which tries to retrieve the login info.
> > > Somehow though the session ID is different and so I lost 
> all my login
> > > info :(
> > >
> > > Can someone tell me why session would be diferent please?
> > >
> > > Cheers
> > > Vic
> > >
> > >
> > > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > >
> > >
> > > This transmission (and any information attached to it) may be
> > confidential and is intended solely for the use of the individual
> > or entity to which it is addressed. If you are not the intended
> > recipient or the person responsible for delivering the
> > transmission to the intended recipient, be advised that you have
> > received this transmission in error and that any use,
> > dissemination, forwarding, printing, or copying of this
> > information is strictly prohibited. If you have received this
> > transmission in error, please immediately notify LabOne at the
> > following email address: [EMAIL PROTECTED]
> > >
> > >
> > >
> > > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [E

[OT - Slightly] Returning Error Status from Business Layer

2003-08-14 Thread Jerry Jalenak
Just curious - how do most of you return errors from your business model?
Do you simply return an integer value (-1, 0. 99?) and then interpret it in
the action?  Or do you return a error string that maps to something in
ApplicationResources?  Any other techniques?  I'm trying to find a 'best
practice' on how to do this  

Thanks - 

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to keep session info??

2003-08-14 Thread Jerry Jalenak
Make sure that your  isn't doing a redirect (i.e.
redirect="true").  If I understand things correctly, a redirect will cause a
new session to be created...

Jerry

-Original Message-
From: development [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 14, 2003 8:42 PM
To: [EMAIL PROTECTED]
Subject: How to keep session info??


Hi all,

I've got a LoginAction which inside its execute method validates and 
saves the login info into HttpSession instance. It creates an 
ActionForward and returns it.
All works good and it calls the new Action which I call MembersAction 
which tries to retrieve the login info.
Somehow though the session ID is different and so I lost all my login 
info :(

Can someone tell me why session would be diferent please?

Cheers
Vic


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT - Slightly] Returning Error Status from Business Layer

2003-08-14 Thread Jerry Jalenak
Erik, David, and Mike - 

Thanks for the replies - interesting to note that all three of you suggested
basically the same answer, that of using the exception mechanism.  When
implementing this, do you code individual, specific exception handlers (i.e.
InvalidUserException, etc), or do you have a generic handler that you can
pass a 'cause' back through?

Thanks.

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 2:29 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: [OT - Slightly] Returning Error Status from Business Layer


You should look also at the declarative exception handling Struts has. 

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 3:26 PM
To: Struts Users Mailing List
Subject: Re: [OT - Slightly] Returning Error Status from Business Layer


--- Erik Price <[EMAIL PROTECTED]> wrote:
> 
> 
> Jerry Jalenak wrote:
> 
> > Just curious - how do most of you return errors from your business
> model?
> > Do you simply return an integer value (-1, 0. 99?) and then interpret
> it in
> > the action?  

Yuck.

> >Or do you return a error string that maps to something in
> > ApplicationResources?  Any other techniques?  I'm trying to find a
> 'best
> > practice' on how to do this  
> 
> Java has a really elegant mechanism for returning errors called 
> Exceptions

Errors from the business layer should be reported as exceptions.  The
exception could carry a list of error messages or resource keys so that
the next layer can display a message to the user.  Or the next layer could
interpret the exception into some error message, it's your choice.

David

> 
> 
> 
> Erik
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT - Slightly] Returning Error Status from Business Layer

2003-08-14 Thread Jerry Jalenak
Erik,

You're right - I asked the wrong question (how to return error and not how
to return status), so thanks for sticking with me on this thread.  I've
started looking at the Type-Safe Enum pattern; except for providing a
'type-safe' construct in which to code return status, it doesn't look like
it does much more for me than returning a simple integer.  I still end up in
the action with a whole series of if-else-else-else statements (and maybe I
just need to get over my 'ugh' factor and move on :-)  I do like the idea of
being able to code a method as a status and actually do something,
though.



Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2003 1:52 PM
To: Struts Users Mailing List
Subject: Re: [OT - Slightly] Returning Error Status from Business Layer




Jerry Jalenak wrote:

> 
> 
> Erik - 
> 
> How then do you return a simple status from your business model to your
> action?  There is not an 'exceptional condition' - simply a return value
> that the action can use to select the appropriate forward (for instance).
> As I've been looking into using exceptions to handle this, it appears that
> I've swapped a series of if-then-else constructs for a series of
> try-catch-catch blocks.  So let me re-phrase my question - when a business
> model needs to return a status (not an exceptional condition (i.e.
> SQLException)), what is the 'best practice' for doing this?
> 
> 

Ah, I think I understand the problem.  The suggestions to use exceptions 
came as a result of this question:

> Just curious - how do most of you return errors from your business model?
> Do you simply return an integer value (-1, 0. 99?) and then interpret it
in
> the action?  Or do you return a error string that maps to something in
> ApplicationResources?  Any other techniques?  I'm trying to find a 'best
> practice' on how to do this

I (and probably the others who responded) thought you were asking for 
ways for the business/domain model to indicate to the controller/Struts 
layer what kind of error it [the domain layer] has encountered.  This is 
when I suggested using exceptions, instead of returning any kind of 
error code whatsoever.  The reason why Java has exceptions is because 
the problem with returning error codes is that, usually this results in 
a big chunk of code that tests this return code, such as a sequence of 
if/else statements, or a big switch statement.  This is fine in C, which 
doesn't have Java's try/catch/finally exceptions, because you *need* to 
make sure that the data returned from an operation is sane.

However, with try/catch/finally, you can just put your code into a try 
block and catch any exceptions that get thrown in the process of trying 
to execute that code.  So instead of testing the return code from an 
operation for sanity, the language lets you interrupt the operation 
altogether when there is a problem, and your exception handler can step 
in to clean up, log the error into a logfile, and set things straight. 
My last post, which was intended to clarify my position, basically 
reiterates the fact that this is for exceptional circumstances only -- 
not a good way to control the flow of logic in your application.

In answer to your more recent question above, "when a business
model needs to return a status (not an exceptional condition (i.e.
SQLException)), what is the 'best practice' for doing this?"

I don't really find myself needing to test the status of an operation. 
Usually an operation either returns the result I'm looking for, or it 
fails altogether (and goes to a catch block).  I just use the value that 
the operation gave me, such as echoing it out to the user or performing 
a calculation with the result.  However, I can understand that there are 
plenty of times when an operation can return a  variety of different 
results, and you want to do something different with each one.  That 
sounds like what you've described in this most recent email.

What you're asking about is an "enumeration".  There's a number of 
different ways to implement an enumeration -- some people say just 
return a different String, and then you can analyze the String in your 
code to decide what to do with it.  Others suggest using integer status 
codes, which is the sort of thing you'd expect in a C program (where the 
concept of an enumeration is supported by a language keyword).  I guess 
Java 1.5 is supposed to feature some sort of enum support as well, 
though I don't know much about it.

My favorite implementation of an enumeration is Josh Bloch's "Type-Safe 
Enum" design pattern.  You can lo

RE: [OT] Determining Class Type of Action

2003-08-14 Thread Jerry Jalenak
No, it's not.  Poor typing on my part 8-)

I've worked around my problem by getting the name (.getName()) and doing a
String comparison.  Not real pretty, but it works.  I'd rather check to see
if it is an instance of DispatchAction rather than checking to see if it is
'org.apache.struts.actions.DispatchAction'.

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Michael Ruppin [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 14, 2003 3:01 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] Determining Class Type of Action
> 
> 
> Is this a cut & paste of the code?  You're missing a
> closing paren in your if statement.
> 
> m
> 
> --- Jerry Jalenak <[EMAIL PROTECTED]> wrote:
> > I am extracting the class type from an Action:
> > 
> > Class c = Class.forName(mapping.getType());
> > 
> > I can then 'chase' the class chain backwards:
> > 
> > boolean isDispatchAction = false;
> > while(!isDispatchAction)
> > {
> > c = c.getSuperClass();
> > if
> >
> (c.isInstance(org.apache.struts.actions.DispatchAction)
> > {
> > isDispatchAction = true;
> > }
> > }
> > 
> > The 'if' statement comparison is never true.  I've
> > printed out the value of
> > 'c' on each iteration through the loop, and can see
> > when it is
> > 'org.apache.struts.actions.DispatchAction', but my
> > isDispatchAction boolean
> > never gets set to true.
> > 
> > What's the right way to do this?
> > 
> > Thanks!
> > 
> > 
> > Jerry Jalenak
> > Team Lead, Web Publishing
> > LabOne, Inc.
> > 10101 Renner Blvd.
> > Lenexa, KS  66219
> > (913) 577-1496
> > 
> > [EMAIL PROTECTED]
> > 
> > 
> > This transmission (and any information attached to
> > it) may be confidential and is intended solely for
> > the use of the individual or entity to which it is
> > addressed. If you are not the intended recipient or
> > the person responsible for delivering the
> > transmission to the intended recipient, be advised
> > that you have received this transmission in error
> > and that any use, dissemination, forwarding,
> > printing, or copying of this information is strictly
> > prohibited. If you have received this transmission
> > in error, please immediately notify LabOne at the
> > following email address:
> > [EMAIL PROTECTED]
> > 
> > 
> > 
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] Determining Class Type of Action

2003-08-14 Thread Jerry Jalenak
I am extracting the class type from an Action:

Class c = Class.forName(mapping.getType());

I can then 'chase' the class chain backwards:

boolean isDispatchAction = false;
while(!isDispatchAction)
{
c = c.getSuperClass();
if (c.isInstance(org.apache.struts.actions.DispatchAction)
{
isDispatchAction = true;
}
}

The 'if' statement comparison is never true.  I've printed out the value of
'c' on each iteration through the loop, and can see when it is
'org.apache.struts.actions.DispatchAction', but my isDispatchAction boolean
never gets set to true.

What's the right way to do this?

Thanks!


Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts Validator

2003-08-14 Thread Jerry Jalenak
+1 - Validator works.  I started using it wy back in the pre-RC1 days.
Everytime that Validator hasn't worked for me, I've found that it was due to
a screw up on my part (usually something in the validation.xml file).
Except for rare occasions, I haven't had to write a customized validate
method.  When I do have to, I try to extend Validator so I can continue to
use the tool.

+1 - Validator is not perfect.  While I haven't found any major bugs (at
least ones that haven't already been reported), Validator does have its
quirks - you have got to get the validation.xml file right or else it just
flat won't work.  Also, since Validator relies on your
ApplicationResources.properties file for its error messages, it may appear
that Validator is not working, when in reality, it just can't find the
message to return to the client.

+1,000,000 - There is only Us.  If not, then Micro$oft would be the only
choice for doing web development, and I'd have to find another career :-)

Mark - I'll offer this again.  I'll be more than happy to look over your
forms, struts-config.xml, validator-rules.xml, validation.xml, and
properties files and see if I can figure out why you can't get Validator
working.  Let me know.

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -Original Message-
> From: Steve Raeburn [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 13, 2003 7:30 PM
> To: Struts Users Mailing List
> Subject: RE: Struts Validator
> 
> 
> Let me state the blindingly obvious:
> 
>   1. Validator works. Other people seem to be able to use it.
>   2. Validator is not perfect. Valid bug reports would help 
> make it better.
>   3. This is a community project. There is no Us and Them, 
> only Us. And, for
> better or worse, that includes you.
> 
> Since you've not posted any bug reports about validator I can 
> only assume
> that you are either (a) blowing hot air, or (b) incapable of 
> describing the
> bugs you say you've found. If you aren't capable of making a 
> meaningful
> contribution, please at least don't waste other people's time 
> with your
> nonsense.
> 
> I'm not going to spend any more time batting this back and 
> forth with you.
> If you are prepared to provide constructive criticism and/or 
> help improve
> Struts, you'll find many people willing to accept your help 
> and to offer
> theirs in return. If not, well it's pretty easy to filter you out.
> 
> Steve
> 
> > -Original Message-
> > From: Mark Galbreath [mailto:[EMAIL PROTECTED]
> > Sent: August 13, 2003 3:17 PM
> > To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
> > Subject: RE: Struts Validator
> >
> >
> > Dave,
> >
> > My only complaint with the authors of validator is that (a) 
> they say it's
> > really cheeky, but (b) a host of developers, including me, 
> have complaints
> > about it.  It just doesn't work within the framework 
> documented.  The List
> > is full of complaints and requests along these lines.  You 
> can ignore me,
> > but just dip into the List archive and see.  I write my own 
> validator
> > methods because I couldn't get Validator to work within the Struts
> > framework; looking at the archive, there are hundreds more that
> > could not do
> > the same.
> >
> > I am not looking for a war here.  All I ask is to get the 
> damn thing right
> > before offering it as a release to our community.
> >
> > Mark
> >
> > -Original Message-
> > From: David Graham [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, August 13, 2003 5:45 PM
> > To: Struts Users Mailing List
> > Subject: RE: Struts Validator
> >
> >
> > --- Mark Galbreath <[EMAIL PROTECTED]> wrote:
> > > Me put up?  You offered this to the OS community with insufficient
> > > documentation.  Just look at the archive for this list 
> and I'll wager
> > > there are more questions/complaints about Validator than any other
> > > aspect of the
> > > Struts community.
> > > Me shut up?  Why don't you guys PUT UP?
> >
> > We don't work for you.  Steve is right. If you don't have 
> any constructive
> > criticism or patches it's time to quiet down.
> >
> > David
> >
> > >
> > > Mark
> >
> > > -Original Message-
> > > From: Steve Raeburn [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, August 13, 2003 5:02 PM
> > > To: Struts Users Mailing List
> &g

RE: [OT - Slightly] Returning Error Status from Business Layer

2003-08-14 Thread Jerry Jalenak
Erik,

I'm starting to see it now (I think).  Let me describe what I am trying to
solve...

I have an order screen where a client can, well, order one or more items.
The struts action picks up the item number and hands it off to a business
class.  The business class goes to the database (DAO), and based on what
comes back, either returns a JavaBean containing the item information, or a
status indicating out of stock, no longer carried, etc.  Since I can only
return one object from a method, I either end up adding a 'status' field to
the JavaBean, or I end up returning a type of 'Object' and checking in the
action to see if it is a type of JavaBean or not - if not, I cast it to an
Integer (or String) object, and figure out what happened.  If it is a type
of JavaBean, then I go merrily on my way.  The other option is to code
unique exceptions and throw OutOfStockException (for example) and have the
action 'catch' it and handle it.  Frankly, I don't like any of these
options, but can't seem to find any other options.

I have a 'Constant' class where I put values that are used for storing
objects in an HttpSession.  Should these be re-coded to use the TypeSafe
Enum pattern?

Thanks for your input on this - I do appreciate it.

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2003 2:40 PM
To: Struts Users Mailing List
Subject: Re: [OT - Slightly] Returning Error Status from Business Layer




Jerry Jalenak wrote:

> Erik,
> 
> You're right - I asked the wrong question (how to return error and not how
> to return status), so thanks for sticking with me on this thread.  I've
> started looking at the Type-Safe Enum pattern; except for providing a
> 'type-safe' construct in which to code return status, it doesn't look like
> it does much more for me than returning a simple integer.  I still end up
in
> the action with a whole series of if-else-else-else statements (and maybe
I
> just need to get over my 'ugh' factor and move on :-)  I do like the idea
of
> being able to code a method as a status and actually do something,
> though.

Right, this doesn't work in every case of the type-safe enum, but 
sometimes you can get rid of a series of if/then/else statements with a 
method invocation.  Here's a very very simplified example:

public class Status {

   // instance members

   private String code;

   private Status(String code) {
 this.code = code;
   }

   public boolean equals(Object o) {
 return this.code.equals(Object o);
   }

   public int hashCode() {
 return this.code.hashCode();
   }


   // static members

   // this stub method is intended to be overridden
   // in anonymous subclasses of Status, so it just
   // throws an exception unless it's overridden.
   public void printStatus() {
 throw new UnsupportedOperationException();
   }

   public static Status GOOD = new Status("good") {
 public void printStatus() {
   System.out.println("You done good! Live long and prosper.");
 }
   };

   public static Status BAD = new Status("bad") {
 public void printStatus() {
   System.out.println("You done bad! No soup for you.");
 }
   };
}


Now, if you simply used an integer for the return code of an operation 
(say, GOOD = 1, and BAD = 0), it's a lot less typing than the above. 
But there's no type safety, that is to say, it's possible that by some 
accident, your application could return a status code of 2.  This is can 
be a very difficult bug to spot in some contexts.  Even more so when 
you're releasing your code as a library for others to make use of.  So 
the type-safe enum pattern makes sure that only GOOD and BAD can be used 
(there's no way to sneak in an extra static member into the class [that 
I know of]).  Of course, if you find that you need to add additional 
status codes, you can just code them into the class and recompile.

The second benefit is the encapsulation of enumeration-specific behavior 
I've mentioned before, where you can simply dispatch a message to the 
enumeration rather than test its value, because each instance of the 
Status has its own "printStatus" behavior.  This doesn't *always* work 
in every circumstance (not every enumeration is this simple), but it's 
generally worked for me.

In an integer-based enumeration, you need if/else tests to decide what 
to do, or switch statements:

int myStatus = performSomeOperation();
if (myStatus == 0) {
   System.out.println("You been bad!...");
   ... do some other stuff here
}
else if (myStatus == 1) {
   System.out.println("You been good!...");
   ... do some other stuff her

Class Not Found Exception with Tiles controllClass

2003-08-14 Thread Jerry Jalenak
I'm getting a 'Class not found' exception when I try to use a
controllerClass in a Tiles definition

















The "NewsController" looks like this...



package com.labone.membersolutions.framework.tiles.controller;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.tiles.ComponentContext;
import org.apache.struts.tiles.Controller;

public class NewsController implements Controller
{
public void perform(ComponentContext cc, HttpServletRequest request,
HttpServletResponse response, ServletContext sc)
{
request.setAttribute("MemberSolutionsNews", "this is the
daily news");
}
}



I can't see the problem; I've checked the archives for similar issues but
didn't find anything.  I'm using Struts 1.1 Final.  Any ideas?

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT - Slightly] Returning Error Status from Business Layer

2003-08-14 Thread Jerry Jalenak
Erik - 

Thanks.  I'm beginning to look at ways to handle returning status using
exceptions.  The idea of 'wrapping' each exception by layer is very
appealing


Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2003 10:29 AM
To: Struts Users Mailing List
Subject: Re: [OT - Slightly] Returning Error Status from Business Layer




Jerry Jalenak wrote:

> Erik, David, and Mike - 
> 
> Thanks for the replies - interesting to note that all three of you
suggested
> basically the same answer, that of using the exception mechanism.

I think it's just that one of the cool things about Java over PHP or C 
is that we have exceptions, and we don't have to test return values -- 
we can just write code that assumes that an exception was not thrown, 
but if one -is- thrown, we can catch it and deal with it.

(Within limits -- obviously it's not just as simple as assuming that no 
exceptions are thrown)

> When
> implementing this, do you code individual, specific exception handlers
(i.e.
> InvalidUserException, etc), or do you have a generic handler that you can
> pass a 'cause' back through?

It really all depends on the context, but what I have done is I have a 
set of exceptions that I use exclusively within the domain layer of the 
application.  These are thrown or caught as appropriate, for instance, a 
SQLException is caught by my JDBC-using code, but when I rethrow this 
from my JDBC data access object business delegate I wrap it inside of a 
home-brewed PersistenceException.  This way, if I switch to use a EJB 
data access object business delegate, I can catch the RemoteExceptions 
(or whatever EJB-specific exceptions are thrown) and wrap -them- into a 
PersistenceException.

The advantage of this is that the facade-side of my data access objects 
don't have to know whether it's a SQLException or a RemoteException that 
caused the problem, it just catches PersistenceException and does what 
it needs to do.  Sometimes I can end the exception-handling right here 
by performing whatever steps are needed to fix the problems.  Other 
times, the facade (which is the outermost level of my domain logic right 
now) needs to report back to my Struts Action that there has been an 
exception.  I don't have my code return a special return value if there 
has been a problem, rather I rethrow the PersistenceException wrapped 
inside of a DomainException.  My Struts code can then handle only 
DomainExceptions without needing to know the details.  But if I did need 
to know the details of the DomainException (such as to provide a more 
useful error message to the user as to what went wrong, or to email 
myself some info), I can unwrap the DomainException and get at the 
PersistenceException, or something.

This is a simplification and not actually exactly how I've implemented 
it, but it shows two things -- 1, you can avoid messy situations with a 
long string of conditionals (or switch statements, which I don't care 
for) that test for return values by throwing a meaningful exception and 
putting the appropriate exception-handling code in the catch statement. 
  2, you don't need to expose all of your exceptions to every layer of 
your application -- some of your custom exceptions are exclusively used 
in your domain/model layer, others can be seen by the controller and can 
affect how it renders the view.  Doing this helps keep your controller 
and model from being tightly coupled.


Regards,

Erik


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] Rendering Large ResultSet - Value List Handler DesignPa ttern

2003-08-14 Thread Jerry Jalenak
Take a look at iBatis (www.ibatis.com).  It supports lazy loading of data,
caching of results, and paging for large result sets.  Might be of some use
(it is for me, anyway).

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 12:02 PM
To: [EMAIL PROTECTED]
Subject: RE: [OT] Rendering Large ResultSet - Value List Handler Design
Pattern


where do you keep the initial resultset? Or do you execute the query each 
time the user requests to page?

What would be nice if i could execute an sql statement which would give me a

sub set of the results as contolled by a start and end position i specify 
e.g.

Select code, desc from products where ROW_NUM >= 1 and ROW_NUM <= 10


>From: "Mark Galbreath" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" 
><[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>
>Subject: RE: [OT] Rendering Large ResultSet - Value List Handler Design 
>Pattern
>Date: Tue, 12 Aug 2003 12:52:13 -0400
>
>I send elements of the ResultSet to a String[] and pass it to the
>presentation tier.
>
>Mark
>
>-Original Message-
>From: David Graham [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, August 12, 2003 12:43 PM
>
>You can't store a ResultSet in an HttpSession because it's not 
>Serializable.
>If you can't fit the result into memory, I would create an Iterator
>implementation that loops over a ResultSet and pass that to the 
>presentation
>tier (Servlet or JSP) for rendering.  That way you isolate the data
>retrieval details (ie. ResultSet) from the next layer.
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] Lightweight weblogger

2003-08-14 Thread Jerry Jalenak
Greg - 

Thanks for the tip - I'll check it out this afternoon.

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Greg Ludington [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 1:48 PM
To: 'Erik Price'; 'Struts Users Mailing List'
Subject: RE: [OT] Lightweight weblogger


> I am looking for a lightweight, Java based weblogger that can be 
> *easily* integrated into an existing Struts-based web application.  I 

You mentioned that you were looking at MiniBlog, but did not like the
scriplet approach.  Neil Eyde's PersonalBlog began as a struts-based
rewrite of MiniBlog.  It has since been rewritten heavily, but it is
still struts and tiles based, so it might suit your needs.

http://www.eyde.net/index.do?cat=D
http://sourceforge.net/projects/personalblog

-Greg



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Class Not Found Exception with Tiles controllClass

2003-08-14 Thread Jerry Jalenak
The error points to the
'com.labone.membersolutions.framework.tiles.NewsController'.  Since I've
sent this e-mail, I changed the class to extend TilesAction, and am now
using the controllerUrl attribute to point to a Struts action.  This seems
to work OK, so I'm not going to really worry about this.  I am curious as to
whether anyone has been able to use controllerClass with 1.1

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 3:27 PM
To: Struts Users Mailing List
Subject: Re: Class Not Found Exception with Tiles controllClass


What class is it not finding?  Assuming everything compiles ok, this is a
runtime classpath problem.

David

--- Jerry Jalenak <[EMAIL PROTECTED]> wrote:
> I'm getting a 'Class not found' exception when I try to use a
> controllerClass in a Tiles definition
> 
> 
> 
>  name="membersolutions.portalLayout.splitscreen"
>   path="/WEB-INF/tiles/commonLayouts/portalLayoutSplit.jsp" >
>   
>   
>value="/WEB-INF/tiles/commonLayouts/static/topframe.jsp" />
>   
>/>
>value="/WEB-INF/tiles/commonLayouts/static/bottomframe.jsp" />
>   
> 
>   
>  
>
controllerClass="com.labone.membersolutions.framework.tiles.controller.NewsC
> ontroller"
>   name="disclaimer.controller"
>   path="/WEB-INF/tiles/commonLayouts/static/disclaimer.jsp"/>
> 
> 
> 
> The "NewsController" looks like this...
> 
> 
> 
> package com.labone.membersolutions.framework.tiles.controller;
> 
> import javax.servlet.ServletContext;
> import javax.servlet.http.HttpServletRequest;
> import javax.servlet.http.HttpServletResponse;
> 
> import org.apache.struts.tiles.ComponentContext;
> import org.apache.struts.tiles.Controller;
> 
> public class NewsController implements Controller
> {
>   public void perform(ComponentContext cc, HttpServletRequest request,
> HttpServletResponse response, ServletContext sc)
>   {
>   request.setAttribute("MemberSolutionsNews", "this is the
> daily news");
>   }
> }
> 
> 
> 
> I can't see the problem; I've checked the archives for similar issues
> but
> didn't find anything.  I'm using Struts 1.1 Final.  Any ideas?
> 
> Jerry Jalenak
> Team Lead, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> 
> [EMAIL PROTECTED]
> 
> 
> This transmission (and any information attached to it) may be
> confidential and is intended solely for the use of the individual or
> entity to which it is addressed. If you are not the intended recipient
> or the person responsible for delivering the transmission to the
> intended recipient, be advised that you have received this transmission
> in error and that any use, dissemination, forwarding, printing, or
> copying of this information is strictly prohibited. If you have received
> this transmission in error, please immediately notify LabOne at the
> following email address: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] Lightweight weblogger

2003-08-14 Thread Jerry Jalenak
I looked at blojsom but it requires a Tomcat 4.x container - we're still
stuck in the Tomcat 3.x world  :-(

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 10:36 AM
To: Struts Users Mailing List
Subject: Re: [OT] Lightweight weblogger




Jerry Jalenak wrote:

> I am looking for a lightweight, Java based weblogger that can be *easily*
> integrated into an existing Struts-based web application.  I looked at
> Roller, but it requires Tomcat 4 (which we aren't on yet - still running
> Tomcat 3.3!).  I found the MiniBlog by Russell Beatie, but don't like the
> approach he took of embedding all of the Java code directly in the JSP
(yeah
> yeah I'm lazy - don't have time to re-write it).  The other Java based
> bloggers seem immature.  Does anyone have a recommendation for a good,
> lightweight blogger?  I don't need search, etc - I'm using this strictly
as
> a 'News and Feedback' add-on...


Maybe <http://blojsom.sourceforge.net/> has what you need.
Blojsom is based on the extremely popular Blosxom weblog software.



Erik


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT - Slightly] Returning Error Status from Business Layer

2003-08-14 Thread Jerry Jalenak


Erik - 

How then do you return a simple status from your business model to your
action?  There is not an 'exceptional condition' - simply a return value
that the action can use to select the appropriate forward (for instance).
As I've been looking into using exceptions to handle this, it appears that
I've swapped a series of if-then-else constructs for a series of
try-catch-catch blocks.  So let me re-phrase my question - when a business
model needs to return a status (not an exceptional condition (i.e.
SQLException)), what is the 'best practice' for doing this?



Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2003 11:05 AM
To: Struts Users Mailing List
Subject: Re: [OT - Slightly] Returning Error Status from Business Layer




Jerry Jalenak wrote:

> Erik - 
> 
> Thanks.  I'm beginning to look at ways to handle returning status using
> exceptions.  The idea of 'wrapping' each exception by layer is very
> appealing

No problem.  While exceptions are awesome, I don't want to give the 
impression that they should be used for everything -- while in other 
languages such as Python, it is traditional to use exceptions for basic 
execution control flow (i.e., an infinite loop that is only broken by a 
thrown exception), in Java the idiomatic use of exceptions is that they 
are only used in "exceptional circumstances", generally when there is a 
problem of some sort.  Also, AFAIK throwing an exception uses more 
resources than simply making a conditional decision.

There is a great chapter in Joshua Bloch's book "Effective Java" on 
best-practices for using exceptions.  If you find that a lot of your 
code looks like a long string of "if... else" statements or switch 
statements then you may wish to research Martin Fowler's "Replace 
Conditional with Polymorphism" refactoring.

Regards,

Erik


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Class Not Found Exception with Tiles controllClass

2003-08-08 Thread Jerry Jalenak
Yes.  Checked and double checked. See my previous response to David.  The
controllerUrl attribute and the use of a TilesAction seems to work OK

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Oliver Reflé [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 3:52 PM
To: Struts Users Mailing List
Subject: AW: Class Not Found Exception with Tiles controllClass


Is your Controller Class NewsController included in your applications
library / classes path ?

-Ursprüngliche Nachricht-
Von: Jerry Jalenak [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 6. August 2003 22:42
An: '[EMAIL PROTECTED]'
Betreff: Class Not Found Exception with Tiles controllClass


I'm getting a 'Class not found' exception when I try to use a
controllerClass in a Tiles definition

















The "NewsController" looks like this...



package com.labone.membersolutions.framework.tiles.controller;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.tiles.ComponentContext;
import org.apache.struts.tiles.Controller;

public class NewsController implements Controller
{
public void perform(ComponentContext cc, HttpServletRequest request,
HttpServletResponse response, ServletContext sc)
{
request.setAttribute("MemberSolutionsNews", "this is the
daily news");
}
}



I can't see the problem; I've checked the archives for similar issues but
didn't find anything.  I'm using Struts 1.1 Final.  Any ideas?

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at the following email address:
[EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Class Not Found Exception with Tiles controllClass

2003-08-06 Thread Jerry Jalenak
I'm getting a 'Class not found' exception when I try to use a
controllerClass in a Tiles definition

















The "NewsController" looks like this...



package com.labone.membersolutions.framework.tiles.controller;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.tiles.ComponentContext;
import org.apache.struts.tiles.Controller;

public class NewsController implements Controller
{
public void perform(ComponentContext cc, HttpServletRequest request,
HttpServletResponse response, ServletContext sc)
{
request.setAttribute("MemberSolutionsNews", "this is the
daily news");
}
}



I can't see the problem; I've checked the archives for similar issues but
didn't find anything.  I'm using Struts 1.1 Final.  Any ideas?

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] Lightweight weblogger

2003-08-06 Thread Jerry Jalenak
I am looking for a lightweight, Java based weblogger that can be *easily*
integrated into an existing Struts-based web application.  I looked at
Roller, but it requires Tomcat 4 (which we aren't on yet - still running
Tomcat 3.3!).  I found the MiniBlog by Russell Beatie, but don't like the
approach he took of embedding all of the Java code directly in the JSP (yeah
yeah I'm lazy - don't have time to re-write it).  The other Java based
bloggers seem immature.  Does anyone have a recommendation for a good,
lightweight blogger?  I don't need search, etc - I'm using this strictly as
a 'News and Feedback' add-on...

Thanks!

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Multiple Struts-Config files

2003-07-24 Thread Jerry Jalenak
That's what I suspected, but wanted to get some independant confirmation :-)

Should the last config file contain the , ,
and  stuff?  The doc seems to imply that if you re-define a
parameter, the last one 'quietly wins'.  To me this means that I should only
have these tags in the last config file.  Is it possible to have a config
file with ONLY these tags?

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 1:30 PM
To: Struts Users Mailing List
Subject: RE: Multiple Struts-Config files


They should each be standalone/valid configs.

-Original Message-----
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 2:29 PM
To: '[EMAIL PROTECTED]'
Subject: Multiple Struts-Config files


When using multiple struts-config files in web.xml, should each file be
complete?  i.e. should each begin and end with appropriate  /
 tags? Or should the first one in the list contain the
, and the last one contain the  tag?

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at the following email address:
[EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Multiple Struts-Config files

2003-07-24 Thread Jerry Jalenak
When using multiple struts-config files in web.xml, should each file be
complete?  i.e. should each begin and end with appropriate  /
 tags? Or should the first one in the list contain the
, and the last one contain the  tag?

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SwitchAction - Page Not Found

2003-07-24 Thread Jerry Jalenak


Never mind.  Stupid typo in the web.xml file.  Hate days like this.  8-)



Hi All,

Two questions for everyone on SwitchAction:

1. Can the 'page' parameter point to an Action in the sub-module?

Default struts-config:










Sat_test struts-config:








When I 'forward' to the testAppl.do in my sat_test module, I am
getting an Error 400 Page cannot be found.

2. The jsessionid parameter is being stuck in the middle of my
resolved forward -
 i.e.
http://jjalenak2k:8080/ms3/mSA.do;jsessionid=ris21qo501?prefix=/sat_test&pag
e=testAppl.do

What's the trick to eliminating the jsessionid?  Could this be
causing my problem in (1)?

TIA!

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SwitchAction - Page Not Found

2003-07-24 Thread Jerry Jalenak
Hi All,

Two questions for everyone on SwitchAction:

1. Can the 'page' parameter point to an Action in the sub-module?

Default struts-config:










Sat_test struts-config:








When I 'forward' to the testAppl.do in my sat_test module, I am
getting an Error 400 Page cannot be found.

2. The jsessionid parameter is being stuck in the middle of my
resolved forward -
 i.e.
http://jjalenak2k:8080/ms3/mSA.do;jsessionid=ris21qo501?prefix=/sat_test&pag
e=testAppl.do

What's the trick to eliminating the jsessionid?  Could this be
causing my problem in (1)?

TIA!

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: mapping.getInputForward returning null

2003-07-15 Thread Jerry Jalenak
Uh, no.  Damn, it's always the littlest things...   Thanks!

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Michael Muller [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 1:48 PM
To: Struts Users Mailing List
Subject: Re: mapping.getInputForward returning null



do you override the constructor and now call super()?

Jerry Jalenak wrote:

> For some reason when I am calling mapping.getInputForward() I'm getting a
> null value.
> 
> 
>  
> className="com.labone.membersolutions.struts.BaseActionMapping"
>   input="membersolutions.changepassword"
>   name="ChangePasswordBean"
>   path="/ChangePassword"
>   scope="request"
>   
>
type="com.labone.membersolutions.framework.web.action.ChangePasswordAction"
>   unknown="false"
>   validate="true">
>  property="secureAction"
>   value="false"/>
>  property="removeFormBean"
>   value="true"/>
>   
> 
> 
> My BaseActionMapping extends ActionMapping so I can include a couple of
> extra  statements (see above).  Everything seems to work OK
-
> my action is being called, the form bean is being instantiated, etc.  The
> first thing I do in my action is to set my default forward - 
> 
> 
>   public ActionForward executeAction(BaseActionMapping mapping,
> ActionForm form, HttpServletRequest request, HttpServletResponse response,
> ActionErrors errors)
>   {
>   System.out.println(">>> mapping.getInputForward is " +
> mapping.getInputForward());
>   ActionForward forward = (ActionForward)
> mapping.getInputForward();
>   
> 
> 
> The value I'm getting in forward is NULL.  Is there something I missed
when
> I extended ActionMapping?
> 
> TIA!
> 
> Jerry Jalenak
> Team Lead, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> 
> [EMAIL PROTECTED]
> 
> 
> This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at the following email address:
[EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



mapping.getInputForward returning null

2003-07-15 Thread Jerry Jalenak
For some reason when I am calling mapping.getInputForward() I'm getting a
null value.








My BaseActionMapping extends ActionMapping so I can include a couple of
extra  statements (see above).  Everything seems to work OK -
my action is being called, the form bean is being instantiated, etc.  The
first thing I do in my action is to set my default forward - 


public ActionForward executeAction(BaseActionMapping mapping,
ActionForm form, HttpServletRequest request, HttpServletResponse response,
ActionErrors errors)
{
System.out.println(">>> mapping.getInputForward is " +
mapping.getInputForward());
ActionForward forward = (ActionForward)
mapping.getInputForward();



The value I'm getting in forward is NULL.  Is there something I missed when
I extended ActionMapping?

TIA!

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] Use of Static Methods

2003-07-10 Thread Jerry Jalenak
Richard,

Thanks for the review and comments.  I'll update my use of SecureRandom to
call one of the 'getInstance' methods.



Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 12:56 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Use of Static Methods


Jerry,
Your methods are thread-safe. The MessageDigest.getInstance() and
SecureRandom() calls are thread-safe too. One thing I read while reading the
JavaDocs for SecureRandom() was:

This constructor is provided for backwards compatibility. The caller is
encouraged to use one of the alternative getInstance methods to obtain a
SecureRandom object.

You might consider changing your code to comply with this.

Regards,

Richard

-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 10, 2003 10:30 AM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Use of Static Methods


Micael,

The class is called 'Password':

public class Password
{
public static byte[] getEncryptedPassword(byte[] digestKey, String
password)
{
try
{
MessageDigest md =
MessageDigest.getInstance("SHA1");
md.update(digestKey);
md.update(password.getBytes());
return (md.digest());
}
catch(Exception e)
{
return (null);
}
}

public static byte[] getRandomDigestKey()
{
byte[] digestKey = new byte[12];

SecureRandom sr = new SecureRandom();
sr.nextBytes(digestKey);
return (digestKey);
}

public static String getRandomPassword()
{
return (RandomStringUtils.randomAlphabetic(8));
}
}

I am calling this using 'Password.getEncryptedPassword(digestKey,
password)'.  I don't think I have thread issues since I'm not using instance
variables, but I'm concerned about the use of the
MessageDigest.getInstance() and SecureRandom calls

Thanks!

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Micael [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 11:51 AM
To: Struts Users Mailing List
Subject: RE: [OT] Use of Static Methods


Could you give us the method body again?  That is where we can see if there 
is a thread safety issue?

At 07:53 AM 7/10/03 -0500, you wrote:
>To everyone:  WOW!  Talk about opening a can of worms!  It's been quite 
>interesting reading the different viewpoints regarding the use of 
>statics
vs
>singletons, whether Perl is OO or not, etc. etc. etc.  It's this kind 
>of discussion that makes this list one (if not THE) best list on the 
>web.
>
>Ted: Thanks for answering the specific question.  As much as I've 
>enjoyed the thread, all I really wanted to know is if my approach for 
>these
'helper'
>methods was appropriate or not.  I'm not sure what you mean by 'whether 
>instantiating Password is an issue' - I can't think of a case where 
>instantiating any class would be an issue, so I guess I could change 
>the Password class to be a 'normal' class.  The 
>'getEncryptedPassword()' method is used by several different classes, 
>so I don't really want to make it
part
>of a specific class - that's one of the reasons I moved it to a 
>'helper' class and made it static.  I guess the only question I have 
>remaining is whether there is a problem with maintaining 'thread safety'
with the use of
>a static method   Is there a chance that two or more users can get to
>the method at the same time and clobber each other?
>
>
>Jerry Jalenak
>Team Lead, Web Publishing
>LabOne, Inc.
>10101 Renner Blvd.
>Lenexa, KS  66219
>(913) 577-1496
>
>[EMAIL PROTECTED]
>
>
>-Original Message-
>From: Ted Husted [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 09, 2003 5:34 PM
>To: Struts Users Mailing List
>Subject: Re: [OT] Use of Static Methods
>
>
>It's mainly a question of whether instantiating Password is an issue. If
>   not, then make it a normal method.
>
>Ideally, getEncryptedPassword should be a method of whatever class 
>needs to call it.
>
>The benefit of static methods is that they can be called without 
>instantiating the class that contains them. So long as instantiation is 
>not an issue, then make it a normal me

RE: [OT] Use of Static Methods

2003-07-10 Thread Jerry Jalenak
Micael,

The class is called 'Password':

public class Password
{
public static byte[] getEncryptedPassword(byte[] digestKey, String
password)
{
try
{
MessageDigest md =
MessageDigest.getInstance("SHA1");
md.update(digestKey);
md.update(password.getBytes());
return (md.digest());
}
catch(Exception e)
{
return (null);
}
}

public static byte[] getRandomDigestKey()
{
byte[] digestKey = new byte[12];

SecureRandom sr = new SecureRandom();
sr.nextBytes(digestKey);
return (digestKey);
}

public static String getRandomPassword()
{
return (RandomStringUtils.randomAlphabetic(8));
}
}

I am calling this using 'Password.getEncryptedPassword(digestKey,
password)'.  I don't think I have thread issues since I'm not using instance
variables, but I'm concerned about the use of the
MessageDigest.getInstance() and SecureRandom calls

Thanks!

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Micael [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 11:51 AM
To: Struts Users Mailing List
Subject: RE: [OT] Use of Static Methods


Could you give us the method body again?  That is where we can see if there 
is a thread safety issue?

At 07:53 AM 7/10/03 -0500, you wrote:
>To everyone:  WOW!  Talk about opening a can of worms!  It's been quite
>interesting reading the different viewpoints regarding the use of statics
vs
>singletons, whether Perl is OO or not, etc. etc. etc.  It's this kind of
>discussion that makes this list one (if not THE) best list on the web.
>
>Ted: Thanks for answering the specific question.  As much as I've enjoyed
>the thread, all I really wanted to know is if my approach for these
'helper'
>methods was appropriate or not.  I'm not sure what you mean by 'whether
>instantiating Password is an issue' - I can't think of a case where
>instantiating any class would be an issue, so I guess I could change the
>Password class to be a 'normal' class.  The 'getEncryptedPassword()' method
>is used by several different classes, so I don't really want to make it
part
>of a specific class - that's one of the reasons I moved it to a 'helper'
>class and made it static.  I guess the only question I have remaining is
>whether there is a problem with maintaining 'thread safety' with the use of
>a static method   Is there a chance that two or more users can get to
>the method at the same time and clobber each other?
>
>
>Jerry Jalenak
>Team Lead, Web Publishing
>LabOne, Inc.
>10101 Renner Blvd.
>Lenexa, KS  66219
>(913) 577-1496
>
>[EMAIL PROTECTED]
>
>
>-Original Message-
>From: Ted Husted [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 09, 2003 5:34 PM
>To: Struts Users Mailing List
>Subject: Re: [OT] Use of Static Methods
>
>
>It's mainly a question of whether instantiating Password is an issue. If
>   not, then make it a normal method.
>
>Ideally, getEncryptedPassword should be a method of whatever class needs
>to call it.
>
>The benefit of static methods is that they can be called without
>instantiating the class that contains them. So long as instantiation is
>not an issue, then make it a normal method on whichever class needs to
>use it. (Or make Password a member class of whichever classes need to
>call it, and instantiate it when the parent class is instantiated.)
>
>-Ted.
>
>
>Jerry Jalenak wrote:
> > 
> >
> > Thanks to everyone for weighing in on this.  I certainly didn't expect
>this
> > type of discussion.
> >
> > Let me give an example of what we are trying to do, and see if this is
> > appropriate or not.  For various reasons we have a 'roll your own' logon
> > authentication process.  Part of the process takes the users password,
and
> > using a stored digest key, we encrypt it and then compare it to the
stored
> > (encrypted) password.  If they match, great.  If not, then we return an
> > error.  The code that we use to do the encryption looks like the
>following:
> >
> >   public static byte[] getEncryptedPassword(byte[] digestKey, String
> > password)
> >   {
> >   try
> >   {
> >   MessageDigest 

RE: [OT] Use of Static Methods

2003-07-10 Thread Jerry Jalenak
To everyone:  WOW!  Talk about opening a can of worms!  It's been quite
interesting reading the different viewpoints regarding the use of statics vs
singletons, whether Perl is OO or not, etc. etc. etc.  It's this kind of
discussion that makes this list one (if not THE) best list on the web.

Ted: Thanks for answering the specific question.  As much as I've enjoyed
the thread, all I really wanted to know is if my approach for these 'helper'
methods was appropriate or not.  I'm not sure what you mean by 'whether
instantiating Password is an issue' - I can't think of a case where
instantiating any class would be an issue, so I guess I could change the
Password class to be a 'normal' class.  The 'getEncryptedPassword()' method
is used by several different classes, so I don't really want to make it part
of a specific class - that's one of the reasons I moved it to a 'helper'
class and made it static.  I guess the only question I have remaining is
whether there is a problem with maintaining 'thread safety' with the use of
a static method   Is there a chance that two or more users can get to
the method at the same time and clobber each other?


Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 5:34 PM
To: Struts Users Mailing List
Subject: Re: [OT] Use of Static Methods


It's mainly a question of whether instantiating Password is an issue. If 
  not, then make it a normal method.

Ideally, getEncryptedPassword should be a method of whatever class needs 
to call it.

The benefit of static methods is that they can be called without 
instantiating the class that contains them. So long as instantiation is 
not an issue, then make it a normal method on whichever class needs to 
use it. (Or make Password a member class of whichever classes need to 
call it, and instantiate it when the parent class is instantiated.)

-Ted.


Jerry Jalenak wrote:
> 
> 
> Thanks to everyone for weighing in on this.  I certainly didn't expect
this
> type of discussion.
> 
> Let me give an example of what we are trying to do, and see if this is
> appropriate or not.  For various reasons we have a 'roll your own' logon
> authentication process.  Part of the process takes the users password, and
> using a stored digest key, we encrypt it and then compare it to the stored
> (encrypted) password.  If they match, great.  If not, then we return an
> error.  The code that we use to do the encryption looks like the
following:
> 
>   public static byte[] getEncryptedPassword(byte[] digestKey, String
> password)
>   {
>   try
>   {
>   MessageDigest md =
> MessageDigest.getInstance("SHA1");
>   md.update(digestKey);
>   md.update(password.getBytes());
>   return (md.digest());
>   }
>   catch(Exception e)
>   {
>   return (null);
>   }
>   }
> 
> The class name is 'Password', so to call this method we use something like
> 'Password.getEncryptedPassword(storedDigestKey, enteredPassword)'.  Is
this
> type of method appropriate for a 'static' method?  Or should this be a
> singleton?  Or a normal class?
> 
> 
> 
> Jerry Jalenak
> Team Lead, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> 
> [EMAIL PROTECTED]
> 
> 
> -Original Message-
> From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 09, 2003 12:35 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [OT] Use of Static Methods
> 
> 
> I and a lot of other developers would disagree with the statement
> "Static methods are evil for many reasons including philosophical (they're
> not OO) and practical (you can't override their behavior)."
> 
> 1) Whenever you write a method that only accesses static data of a class,
> you should declare the method as static.
> 
> 2) It is not correct to say that static methods can't be overriden. They
can
> be overridden with another static method. You can't override a static
method
> to be non-static, however.
> 
> 3) There are many cases where using the static modifier on a method is
> totally appropriate. Typically, they are used on methods that provide a
very
> specific functionality that will never change. Using the static modifier
on
> such methods also reduces the overall memory footprint of an application.
> 
> Regards,
> 

RE: [OT] Use of Static Methods

2003-07-09 Thread Jerry Jalenak


Thanks to everyone for weighing in on this.  I certainly didn't expect this
type of discussion.

Let me give an example of what we are trying to do, and see if this is
appropriate or not.  For various reasons we have a 'roll your own' logon
authentication process.  Part of the process takes the users password, and
using a stored digest key, we encrypt it and then compare it to the stored
(encrypted) password.  If they match, great.  If not, then we return an
error.  The code that we use to do the encryption looks like the following:

public static byte[] getEncryptedPassword(byte[] digestKey, String
password)
{
try
{
MessageDigest md =
MessageDigest.getInstance("SHA1");
md.update(digestKey);
md.update(password.getBytes());
return (md.digest());
}
catch(Exception e)
{
return (null);
}
}

The class name is 'Password', so to call this method we use something like
'Password.getEncryptedPassword(storedDigestKey, enteredPassword)'.  Is this
type of method appropriate for a 'static' method?  Or should this be a
singleton?  Or a normal class?



Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 12:35 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Use of Static Methods


I and a lot of other developers would disagree with the statement
"Static methods are evil for many reasons including philosophical (they're
not OO) and practical (you can't override their behavior)."

1) Whenever you write a method that only accesses static data of a class,
you should declare the method as static.

2) It is not correct to say that static methods can't be overriden. They can
be overridden with another static method. You can't override a static method
to be non-static, however.

3) There are many cases where using the static modifier on a method is
totally appropriate. Typically, they are used on methods that provide a very
specific functionality that will never change. Using the static modifier on
such methods also reduces the overall memory footprint of an application.

Regards,

Richard



 

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2003 9:22 AM
To: Struts Users Mailing List
Subject: RE: [OT] Use of Static Methods


> 
> One of my programmers asked me whether or not it is OK to define 
> helper methods as 'static' - and I realized that I didn't know the 
> answer.  So I guess the question is, in a web application, can common 
> code be factored out
> to a helper class and marked as 'static'?  

Static methods are evil for many reasons including philosophical (they're
not OO) and practical (you can't override their behavior).  You should use a
Singleton class with non-static methods.

Struts' RequestUtils class is a good example of why you should never use
static methods.  Developers want to override their behavior but can't
because everything is static.

David

> Are there any major problems
> with
> doing this?  I should know the answer, but just can't put my thumb on 
> it right now 8)
> 
> TIA!
> 
> Jerry Jalenak
> Team Lead, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> 
> [EMAIL PROTECTED]
> 
> 
> This transmission (and any information attached to it) may be 
> confidential and is intended solely for the use of the individual or 
> entity to which it is
> addressed. If you are not the intended recipient or the person
> responsible for
> delivering the transmission to the intended recipient, be advised that
> you have
> received this transmission in error and that any use, dissemination,
> forwarding,
> printing, or copying of this information is strictly prohibited. If you
> have
> received this transmission in error, please immediately notify LabOne at
> the
> following email address: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com

-

RE: [OT] Use of Static Methods

2003-07-09 Thread Jerry Jalenak
I think so - I'm just concerned about the use of instance variables and
having multiple users stepping on each other...

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 10:47 AM
To: Struts Users Mailing List
Subject: RE: [OT] Use of Static Methods


There is nothing taboo about writing static methods. They are good in
solving purpose.

But there is an option -- Singleton.

That will keep you safe. As there is only 1 object of the class for which
you wish to invoke methods. so it's same as calling static methods. (well,
syntax is diff ;-)

You may change the behaviour of class in NO time if
you wish there should be more objects of that class.

makes sense?
-navjot


|-Original Message-----
|From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
|Sent: Wednesday, July 09, 2003 8:59 PM
|To: '[EMAIL PROTECTED]'
|Subject: [OT] Use of Static Methods
|
|
|One of my programmers asked me whether or not it is OK to define helper
|methods as 'static' - and I realized that I didn't know the answer.  So I
|guess the question is, in a web application, can common code be
|factored out
|to a helper class and marked as 'static'?  Are there any major
|problems with
|doing this?  I should know the answer, but just can't put my thumb on it
|right now 8)
|
|TIA!
|
|Jerry Jalenak
|Team Lead, Web Publishing
|LabOne, Inc.
|10101 Renner Blvd.
|Lenexa, KS  66219
|(913) 577-1496
|
|[EMAIL PROTECTED]
|
|
|This transmission (and any information attached to it) may be
|confidential and is intended solely for the use of the individual
|or entity to which it is addressed. If you are not the intended
|recipient or the person responsible for delivering the
|transmission to the intended recipient, be advised that you have
|received this transmission in error and that any use,
|dissemination, forwarding, printing, or copying of this
|information is strictly prohibited. If you have received this
|transmission in error, please immediately notify LabOne at the
|following email address: [EMAIL PROTECTED]
|
|
|
|-
|To unsubscribe, e-mail: [EMAIL PROTECTED]
|For additional commands, e-mail: [EMAIL PROTECTED]
|
|


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] Use of Static Methods

2003-07-09 Thread Jerry Jalenak
One of my programmers asked me whether or not it is OK to define helper
methods as 'static' - and I realized that I didn't know the answer.  So I
guess the question is, in a web application, can common code be factored out
to a helper class and marked as 'static'?  Are there any major problems with
doing this?  I should know the answer, but just can't put my thumb on it
right now 8)

TIA!

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] HTTP Error Page? [was RE: Best practices - help]

2003-06-24 Thread Jerry Jalenak

Along these same lines, we also use an index.html file under Apache to
redirect to our /webapp/index.jsp: 




function redirect()
 {
 window.location =
"/webapp/index.jsp"
 }
 //-->






This works OK, except if Tomcat is down.  I can't seem to figure out what
error code (404? 500?) to have Apache grab so I can display a 'temporarily
unavailable' page.  Any ideas?

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Steve Raeburn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 6:32 AM
To: Struts Users Mailing List
Subject: RE: Best practices - help


have a welcome jsp page that redirects to your action:

struts-config.xml:

  

  

index.jsp:

  <%@ taglib uri="http://jakarta.apache.org/struts/tags-logic";
prefix="logic" %>
  

(that's the whole jsp file, not just a snippet!)

Steve


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: June 24, 2003 4:11 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Best practices - help
>
>
> Hi Steve,
>
> The problem is that /MyLayer.jsp happens to be my welcome page.
>
> This page has to be displayed on start up.How  do I get struts process my
> Action servlet,myAction, in order to give /MyLayer.jsp the
> content it needs?
>
> Thanks
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Best practices - help

2003-06-24 Thread Jerry Jalenak
This is something we do that works extremely well.  The path on the
 can point to a set up action where you can initialize /
populate all of those things that you application needs.  The set up action
would then forward to your first .JSP or tile definition.



Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Steve Raeburn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 6:32 AM
To: Struts Users Mailing List
Subject: RE: Best practices - help


have a welcome jsp page that redirects to your action:

struts-config.xml:

  

  

index.jsp:

  <%@ taglib uri="http://jakarta.apache.org/struts/tags-logic";
prefix="logic" %>
  

(that's the whole jsp file, not just a snippet!)

Steve


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: June 24, 2003 4:11 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Best practices - help
>
>
> Hi Steve,
>
> The problem is that /MyLayer.jsp happens to be my welcome page.
>
> This page has to be displayed on start up.How  do I get struts process my
> Action servlet,myAction, in order to give /MyLayer.jsp the
> content it needs?
>
> Thanks
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: ActionForm 'reset' method being called when JSP is rendered

2003-06-19 Thread Jerry Jalenak
Actually I am starting to think this is appropriate behaviour.  After I sent
the original e-mail I realized that the ActionForm was NOT being
instantiated by Action1; in struts-config Action1 simply pre-populated some
beans and then forwarded to JSP2.  It was when JSP2 was being rendered that
I was seeing the 'reset' method for the ActionForm being called.  Diving
into the FormTag code, I found the following:

public int doStartTag() throws JspException {

// Look up the form bean name, scope, and type if necessary
this.lookup();

// Create an appropriate "form" element based on our parameters
StringBuffer results = new StringBuffer();

results.append(this.renderFormStartElement());

results.append(this.renderToken());

ResponseUtils.write(pageContext, results.toString());

// Store this tag itself as a page attribute
pageContext.setAttribute(Constants.FORM_KEY, this,
PageContext.REQUEST_SCOPE);

this.initFormBean();

return (EVAL_BODY_INCLUDE);

}

/**
 * Locate or create the bean associated with our form.
 * @throws JspException
 * @since Struts 1.1
 */
protected void initFormBean() throws JspException {
int scope = PageContext.SESSION_SCOPE;
if ("request".equalsIgnoreCase(beanScope)) {
scope = PageContext.REQUEST_SCOPE;
}

Object bean = pageContext.getAttribute(beanName, scope);
if (bean == null) {
if (type != null) {
// Backwards compatibility - use explicitly specified values
try {
bean = RequestUtils.applicationInstance(beanType);
if (bean != null) {
((ActionForm) bean).setServlet(servlet);
}
} catch (Exception e) {
throw new JspException(
messages.getMessage("formTag.create", type,
e.toString()));
}
} else {
// New and improved - use the values from the action mapping
bean =
RequestUtils.createActionForm(
(HttpServletRequest) pageContext.getRequest(),
mapping,
moduleConfig,
servlet);
}
if (bean instanceof ActionForm) {
((ActionForm) bean).reset(mapping, (HttpServletRequest)
pageContext.getRequest());
}
if (bean == null) {
throw new JspException(messages.getMessage("formTag.create",
beanType));
}
pageContext.setAttribute(beanName, bean, scope);
}
pageContext.setAttribute(Constants.BEAN_KEY, bean,
PageContext.REQUEST_SCOPE);
}

The doStartTag has a call to initFormBean; in initFormBean there is a call
to RequestUtils.createActionForm, followed by a call to the ActionForms
'reset' method.  In a wizard type of application, this could indeed cause
problems where the reset method may be clearing values from the ActionForm;
I've had to add code to a couple of my projects to check the mapping to see
if I wanted to reset or not.  Maybe one of the guru's could shed some light
on why the  tag would instantiate the ActionForm and call reset
when the JSP is rendered, opposed to doing this when the form is actually
submitted



Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Richard J. Duncan [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 12:00 PM
To: [EMAIL PROTECTED]
Subject: RE: ActionForm 'reset' method being called when JSP is rendered


If what your saying is true, it would break a *lot* of applications that
create/reuse an ActionForm in a particular scope and then forward to a page.
I wonder if something else is happening in your app. Just a thought...

Regards,
 
Rich

-Original Message-
From: Paul Harrison [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 19, 2003 11:43 AM
To: Struts Users Mailing List
Subject: Re: ActionForm 'reset' method being called when JSP is rendered

I am writing an application with a series of "wizard" type pages, so I 
thought that I would use one big ActionForm in session scope and each 
page add extra information to it - however this did not work as reset 
was being called at each page invocation - I am interested to hear that 
reset should only be called at instantiation time, because I believe 
that in 1.1 RC2 it is being called more often  than that - I can did out 
the old verision of the code to have a look at the exact circumstances 
if necessary

Ted Husted wrote:

> In Struts 1.0.2 and later, reset is called by the html:form tag *if* 
> the ActionForm is being instan

RE: ActionForm 'reset' method being called when JSP is rendered

2003-06-19 Thread Jerry Jalenak
Ted,

After I sent the original e-mail I found out that one of my developers had
changed where the ActionForm was initially instantiated.  The first JSP is
calling an Action (via a  that does NOT have an ActionForm
associated with it.  This Action preloads a series of JavaBeans and then
forwards to the second JSP.  The Action associated with this JSP does have
the ActionForm associated with it, and since the ActionForm has never been
instantiated, the  tag was doing it at that time.  I guess I
never realized that the  tag would do this (instantiate an
ActionForm and call reset) - I've always been under the impression that the
ActionForm, reset, and validate methods were not called until AFTER the form
was submitted.

Learning something new everyday . 8-)

Thanks.

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 6:56 AM
To: Struts Users Mailing List
Subject: Re: ActionForm 'reset' method being called when JSP is rendered


In Struts 1.0.2 and later, reset is called by the html:form tag *if* the 
ActionForm is being instantiated at that time. The scope shouldn't matter.

Also remember that the html:form tag is looking at the Action to which 
it submits, which may not be "Action 1". If these are the same Action, 
or share the same formbean under the same attribute, then the ActionForm 
should already exist, and reset should not be called.

-Ted.

Jerry Jalenak wrote:
> I'm seeing some odd behaviour with one of my actions.  If anyone can
explain
> this I'd sure appreciate it
> 
> Here's what I've got - in struts-config I have an ActionForm that is
shared
> by two Actions.  The ActionForm is created in session scope by the first
> action, and referenced by the second Action (also in session).  Tracing
the
> calls to 'reset' and 'validate' I see the following:
> 
>   JSP is displayed  -> html form is submitted -> 'reset' is called ->
> 'validate' is called -> Action 1 is performed -> forward to next JSP ->
> 'reset' is called -> JSP is displayed
>   
> /\/\/\/\/\/\/\ !
> 
> My understanding is that 'reset' should not be called again until the form
> on the second JSP is submitted.  Have I completely mis-understood how this
> works?  Or is it something due to the ActionForm being created in session
> scope?
> 
> TIA!
> 
> Jerry Jalenak
> Team Lead, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> 
> [EMAIL PROTECTED]
> 
> 
> This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at the following email address:
[EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Ted Husted,
Struts in Action <http://husted.com/struts/book.html>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ActionForm 'reset' method being called when JSP is rendered

2003-06-18 Thread Jerry Jalenak
I'm seeing some odd behaviour with one of my actions.  If anyone can explain
this I'd sure appreciate it

Here's what I've got - in struts-config I have an ActionForm that is shared
by two Actions.  The ActionForm is created in session scope by the first
action, and referenced by the second Action (also in session).  Tracing the
calls to 'reset' and 'validate' I see the following:

JSP is displayed  -> html form is submitted -> 'reset' is called ->
'validate' is called -> Action 1 is performed -> forward to next JSP ->
'reset' is called -> JSP is displayed

/\/\/\/\/\/\/\ !

My understanding is that 'reset' should not be called again until the form
on the second JSP is submitted.  Have I completely mis-understood how this
works?  Or is it something due to the ActionForm being created in session
scope?

TIA!

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [REPOST] Understanging Path/Action/Forward/Parameter naming

2003-06-13 Thread Jerry Jalenak
The struts-config_1_1.dtd file that is included with the distribution has
pretty good definitions for each parameter that is used by each tag.

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Gregory F. March [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 7:30 AM
To: [EMAIL PROTECTED]
Subject: [REPOST] Understanging Path/Action/Forward/Parameter naming



[Sorry for the repost.  I'm doing it for two reasons.  First, I got no
response, and I'm wondering if it's because this is a really dumb
question or if nobody really knows. :-)  And second, because I think I
really need to understand this in order for me to make some decisions
about the architecture of my app.  So, any response would be
welcome... -gfm]

Please forgive the naive question that follows...

Is there a write up somewhere that explains how Struts deals with
names?

Specifically, I would like to understand the different syntaxs of
"path", "name" and "parameter" arguments.

In the following, what is "name" and "path":





And the same thing in:



... and all its variants.

How does one know if it is a real path, a name to be looked up, an
action, a tile definition, etc.?  What are the rules?

I think some of my past questions would have been avoided if I
understood these concepts.

Thanks,

/greg

--
Gregory F. March-=-http://www.gfm.net:81/~march-=-AIM:GfmNet

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Cloning Form Beans

2003-06-12 Thread Jerry Jalenak
Erik,

Thanks for the lesson - and I'll get out and get a copy of Josh's book.  In
the meantime I've also discovered that 'clone' basically does a shallow copy
- i.e. if there is a nested construct of javabeans, clone will only copy the
hightest level, and then place reference pointers to the nested beans.  I
think this is what is getting me.  Does anyone have a 'deep copy' class that
will clone a complex javabean construct?  



Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 2:12 PM
To: Struts Users Mailing List
Subject: Re: Cloning Form Beans




Erik Price wrote:

> But you're still not safe yet.
> 
> What if somehow someone had held onto a reference to one of the Date 
> objects passed into the constructor?
> 
>   Date myEvilStart = new Date();
>   Date end = new Date();
>   Period p = new Period(myEvilStart, end);
>   // at this point is "p" immutable?  NO!
>   myEvilStart.setYear(78);
>   // The "start" field in "p" has just been modified!

Whoops class, sorry, I forgot to finish the lesson.  Bloch teaches us 
that we should also make an internal copy of each argument to the 
constructor:

   public Period(Date start, Date end) {
 this.start = new Date(start);
 this.end = new Date(end);
   }

This way if someone does still have a reference to the argument, they 
can't modify that as a way into our immutable Period class.

Okay class is dimissed.




Erik


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Cloning Form Beans

2003-06-12 Thread Jerry Jalenak
So, something like this?

private String myString;

public String getMyString()
{
String returnedString = this.myString;
return (returnedString);
}

I'm not sure how this applies to my cloning issue....

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 12:39 PM
To: Struts Users Mailing List
Subject: Re: Cloning Form Beans




Jerry Jalenak wrote:
> Not sure what you mean by 'defensive copies'  Is there something
special
> I need to do in my bean so I end up with a 'true' duplicate, and not just
a
> second reference?

Defensive copies... described in Josh Bloch's "Effective Java".  Getter 
methods return a copy of the property that they would return in a normal 
class, so that client code can't affect that property and have the 
change trickle back into your object.  Required for immutable classes 
that compose other objects which are mutable.





Erik


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Cloning Form Beans

2003-06-12 Thread Jerry Jalenak
Not sure what you mean by 'defensive copies'  Is there something special
I need to do in my bean so I end up with a 'true' duplicate, and not just a
second reference?

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Paul Curren [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 12:19 PM
To: Struts Users Mailing List
Subject: Re: Cloning Form Beans


Hi there,

I don't know the answer but reading the javadoc on cloneBean it states -
"Clone a bean based on the available getters and setters..."

So if the getter on your bean isn't making defensive copies (and neither 
is the setter) then i'd imagine your newly cloned bean will have 
properties that reference the same object as the original bean.

Paul C

Jerry Jalenak wrote:

>Hi All,
>
>I have a form-bean defined in struts-config that is created in session
scope
>in a setup action, then used in another three actions (kinda of a wizard
>thing).  In the second action I have to make an exact copy of the form bean
>so I can do some comparisons between old and new values.  I initially
>thought the the BeanUtils.cloneBean method would do the trick, but I'm
>discovering that when my struts form-bean is updated, the cloned bean is
>also being updated.  Leads me to believe that a copy is not really being
>made, but a second reference is being created.  This form-bean is a fairly
>complex set of nested beans; does anyone have a suggestion on the best way
>to handle this?
>
>TIA
>
>Jerry Jalenak
>Team Lead, Web Publishing
>LabOne, Inc.
>10101 Renner Blvd.
>Lenexa, KS  66219
>(913) 577-1496
>
>[EMAIL PROTECTED]
>
>
>This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at the following email address:
[EMAIL PROTECTED]
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: struts-config.xml question

2003-06-12 Thread Jerry Jalenak
I haven't yet, but it caught my eye the other day when it was announced.
Sounded like something that could be of use though  Let us know how it
goes for you....

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Dan Tarkenton [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 11:39 AM
To: Struts Users Mailing List
Subject: RE: struts-config.xml question


Hey, talk about exactly what I was looking for.  Thanks, Jerry.
 
I'm perusing the download right now.  Anyone in this community using the
Wildcard-Matched Actions project?  
 
Wildcard-Matched Actions Project:  http://www.twdata.org/struts-wildcard/
 
It seems to be just 2 new classes with code pulled from the Cocoon project,
and is dependent upon using Struts 1.1.  
 
I think upgrading to Struts 1.1 shouldn't be too hard.  I've read some about
this in the Struts in Action book -- great resource by the way.
 
It would be somewhat comforting to hear from people who are utilizing this.

Jerry Jalenak <[EMAIL PROTECTED]> wrote:
Look at the following :

http://www.mail-archive.com/[EMAIL PROTECTED]/msg68361.html

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS 66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Dan Tarkenton [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 10:59 AM
To: [EMAIL PROTECTED]
Subject: struts-config.xml question


When defining an action element in the struts-config.xml file, we always
utilize the path attribute. For example, I have two actions defined in my
struts-config.xml

*snippet*
type="foo.strutsApp.ContentAction"
name="contentForm"> 


type="ginsu.strutsApp.LoginAction"
name="loginForm"> 


*/snippet*

Say I want to make the first action element be invoked by any path that
starts with "/home" (like "/homeshop" or "/homes"). Basically, can I define
a wildcard in the path attribute? I would like to have the ability to have
a few different URLs mapped to the same action WITHOUT having to define all
of those relative URLs in more action elements.

In essence I would like to have something along the lines of:

type="foo.strutsApp.ContentAction"
name="contentForm"> 



So that the path attribute is mapping potentially any number of relative
URLs that begin with "/home" to this action. This would allow me some great
flexibility for real time content updating.

Is this possible? TIA.







-
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.

This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at the following email address:
[EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: struts-config.xml question

2003-06-12 Thread Jerry Jalenak
Look at the following :

http://www.mail-archive.com/[EMAIL PROTECTED]/msg68361.html

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Dan Tarkenton [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 10:59 AM
To: [EMAIL PROTECTED]
Subject: struts-config.xml question


When defining an action element in the struts-config.xml file, we always
utilize the path attribute.  For example, I have two actions defined in my
struts-config.xml
 
*snippet*

 




*/snippet*
 
Say I want to make the first action element be invoked by any path that
starts with "/home" (like "/homeshop" or "/homes").  Basically, can I define
a wildcard in the path attribute?  I would like to have the ability to have
a few different URLs mapped to the same action WITHOUT having to define all
of those relative URLs in more action elements.
 
In essence I would like to have something along the lines of:
 

 

 
So that the path attribute is mapping potentially any number of relative
URLs that begin with "/home" to this action.  This would allow me some great
flexibility for real time content updating.
 
Is this possible?  TIA.
 
 

 
 


-
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Cloning Form Beans

2003-06-12 Thread Jerry Jalenak
Hi All,

I have a form-bean defined in struts-config that is created in session scope
in a setup action, then used in another three actions (kinda of a wizard
thing).  In the second action I have to make an exact copy of the form bean
so I can do some comparisons between old and new values.  I initially
thought the the BeanUtils.cloneBean method would do the trick, but I'm
discovering that when my struts form-bean is updated, the cloned bean is
also being updated.  Leads me to believe that a copy is not really being
made, but a second reference is being created.  This form-bean is a fairly
complex set of nested beans; does anyone have a suggestion on the best way
to handle this?

TIA

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   3   >