Hi Wendy!
On 2004-02-09 at 13:04:36 -0700, Wendy Smoak wrote:
...
I was trying to get it straight recently, and made this note to myself:
In the Action:
ActionMessages am = new ActionMessages();
am.add( ActionMessages.GLOBAL_MESSAGE,
new ActionMessage(
)
and saveMassages with ActionMessages
btw. a new saveMessages() is also there
for saving in session
greetings
matthias
-Original Message-
From: Axel Groß [mailto:[EMAIL PROTECTED] On Behalf Of Axel Groß
Sent: Tuesday, February 17, 2004 1:28 PM
To: Struts Users Mailing List
Subject: Re: ActionErrors
Yes, we're supposed to use ActionMessage and ActionMessages now. The one
place where we can't escape ActionError/s yet is ActionForm's validate
method.
--- Slattery, Tim - BLS [EMAIL PROTECTED] wrote:
While refreshing my memory on the ActionErrors class, I noticed that the
metho:
void add
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Yes, we're supposed to use ActionMessage and ActionMessages
now. The one
place where we can't escape ActionError/s yet is ActionForm's validate
method.
I was trying to get it straight recently, and made this note to myself:
In the Action:
Yes, we're supposed to use ActionMessage and ActionMessages
now. The one place where we can't escape ActionError/s yet is
ActionForm's validate method.
Wait a minute!!! ActionError is marked as deprecated, but not ActionErrors.
It looks to me like we create an ActionMessage, add that to an
PROTECTED]
Sent: Monday, February 09, 2004 9:14 PM
To: 'Struts Users Mailing List'
Subject: RE: ActionErrors deprecated?
Yes, we're supposed to use ActionMessage and ActionMessages
now. The one place where we can't escape ActionError/s yet is
ActionForm's validate method.
Wait a minute
in jsp use this:
html:text property=foo/
struts-html:messages id=error property=foo
struts-bean:write name=error/
/struts-html:messages
Maybe I'm dumb, but I can't make any sense of this. Use it for what?
--
Tim Slattery
[EMAIL PROTECTED]
There's one thing I forgot to mention. That statement I made is for the
nightly build/Struts 1.2. ActionError isn't marked as deprecated in 1.1.
Are you talking about the ActionForm.validate() method? For the nightly
build, yes, that looks about right. The html:errors/ tag in the nightly
It's the new and improved way to display messages on your pages.
html:errors/ sometimes needed html markup on the message resources file to
format the messages properly. The new html:messages tag gives the JSP full
control over formatting, which is where it should be.
--- Slattery, Tim - BLS
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Wendy, are you using that code with 1.1?
I'm using a recent nightly build, so it's probably considered 1.2.
--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management
..instead of the html:errors tag.
The ActionError and ActionErrors classes are going away.
Avoid creating more dependencies on them now (and thus more pain later)
by using ActionMessage/ActionMessages instead. :-)
Larry
[EMAIL PROTECTED] 02/09/04 1:29 PM
in jsp use this:
html:text
-html:messages
i add an ActionMessage-object
to the action.errors.collection
cheers,
-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: Monday, February 09, 2004 9:29 PM
To: 'Struts Users Mailing List'
Subject: RE: ActionErrors deprecated?
in jsp use this:
html:text
Subject: RE: ActionErrors deprecated?
It's the new and improved way to display messages on your pages.
html:errors/ sometimes needed html markup on the message resources file
to
format the messages properly. The new html:messages tag gives the JSP
full
control over formatting, which is where
: David Erickson [mailto:[EMAIL PROTECTED]
Sent: Monday, February 09, 2004 9:41 PM
To: Struts Users Mailing List
Subject: Re: ActionErrors deprecated?
Can we expect to have struts 1.2 fully moved over to using solely
html:messages? Including all the validate methods on actions etc?
-David
14 matches
Mail list logo