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: <html:errors/> 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 <html:errors/> 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 <html:errors> 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: <html:errors/> 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 <html:errors> 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: <html:errors/> throwing null servlet exception
> > > > > 
> > > > > 
> > > > > Using the nightly build from 8/14, I'm now getting a null 
> > > > > servlet exception
> > > > > on an <html:errors/> 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 <html:messages/>, 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]
> > > > 
> > > 
> > > 
> > > __________________________________
> > > 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]
> > 
> > 
> 
> 
> __________________________________
> 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]

Reply via email to