EMAIL PROTECTED]
Sent: Friday, October 15, 2004 10:49 AM
To: 'Struts Users Mailing List'
Subject: RE: Newbie never displays errors
Without seeing your validation code I'm guessing you have this or want to
have this:
public ActionErrors validate (ActionM
; -Original Message-
> From: Nadia Kunkov [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 15, 2004 10:13 AM
> To: Struts Users Mailing List
> Subject: RE: Newbie never displays errors
>
>
> Do I add saveMessages(request, (ActionMessages) errors); to
>
where the validation is happening.
Thanks
-Original Message-
From: Hollaway, Shedrick CIV (TRFKB C600)
[mailto:[EMAIL PROTECTED]
Sent: Friday, October 15, 2004 10:00 AM
To: 'Struts Users Mailing List'
Subject: RE: Newbie never displays errors
Looks like you are not saving your e
: 'Struts Users Mailing List'
Subject: RE: Newbie never displays errors
Looks like you are not saving your errors. Try this after errors.add:
saveMessages(request, (ActionMessages) errors);
> -Original Message-
> From: Nadia Kunkov [mailto:[EMAIL PROTECTED]
> Sent: Friday,
ou could suggest?
> Thanks
> Nadia
>
> -Original Message-
> From: David G. Friedman [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 13, 2004 3:26 PM
> To: Struts Users Mailing List
> Subject: RE: Newbie never displays errors
>
>
> Nadia,
>
ike the error doesn't get added to the session or request.
Anything else you could suggest?
Thanks
Nadia
-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 13, 2004 3:26 PM
To: Struts Users Mailing List
Subject: RE: Newbie never displays e
ate?
>
> Thanks
>
> -Original Message-
> From: David G. Friedman [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 13, 2004 1:10 PM
> To: Struts Users Mailing List
> Subject: RE: Newbie never displays errors
>
> Did you call saveErrors() or saveMe
dia Kunkov [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 13, 2004 1:20 PM
To: Struts Users Mailing List
Subject: RE: Newbie never displays errors
Nooo... I guess that's it!
I thought you need to call saveErrors only when you create ActionErrors
inside Action and not in Vali
Mailing List
Subject: RE: Newbie never displays errors
Did you call saveErrors() or saveMessages() in your Action to save the
messages into the (request) scope for use in the JSP?
-Original Message-
From: Nadia Kunkov [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 13, 2004 12:59
EMAIL PROTECTED]
Sent: Wednesday, October 13, 2004 12:56 PM
To: Struts Users Mailing List
Subject: RE: Newbie never displays errors
Nadia,
The bean:write's name attribute must match the id parameter of the
html:messages tag. That's why I suggested your html:messages tag be:
This
Sent: Wednesday, October 13, 2004 12:56 PM
To: Struts Users Mailing List
Subject: RE: Newbie never displays errors
Nadia,
The bean:write's name attribute must match the id parameter of the
html:messages tag. That's why I suggested your html:messages tag be:
This means it should pull
name "error" (see id=".."). Have
you tried this yet?
Regards,
David
-Original Message-
From: Nadia Kunkov [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 13, 2004 12:46 PM
To: Struts Users Mailing List
Subject: RE: Newbie never displays errors
Here is my jsp:
..
Here is my jsp:
..
.
Thanks for your help
-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 13, 2004 12:35 PM
To: Struts Users Mailing List
Subject: RE: Newbie never displays errors
Please show your JSP code. I
day, October 13, 2004 12:17 PM
To: Struts Users Mailing List
Subject: RE: Newbie never displays errors
Thanks everyone for the replies.
David, I think you are right. I just got an error that bean "error" doesn't
exist in any scope.
That raises another newbie question: I need to sa
quot;" attribute
defaults to the global errors word if you don't specify anything else.
Regards,
David
-Original Message-
From: Nadia Kunkov [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 13, 2004 12:31 PM
To: Struts Users Mailing List
Subject: RE: Newbie never displays err
ror("errors.required","Country Name"));
Thanks
Nadia
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 13, 2004 11:32 AM
To: [EMAIL PROTECTED]
Subject: RE: Newbie never displays errors
Hi Nadia
y, October 13, 2004 12:10 PM
To: Struts Users Mailing List
Subject: RE: Newbie never displays errors
Charles,
Isn't Nadia saving the messages under the name key "countryCapital", not the
global errors key, so shouldn't that html:messages line be:
... etc...
Regards,
er 13, 2004 11:32 AM
To: [EMAIL PROTECTED]
Subject: RE: Newbie never displays errors
Hi Nadia,
Use this to write your message :
will write error message who are call in your validate method
and will check
Did you specify the "input" attribute on your mapping?
Do you have the errors header, footer, prefix and suffix defined in your
message resources?
-Bill Siggelkow
Nadia Kunkov wrote:
Hi,
I have gone through multiple postings and followed the suggestions about displaying
the errors. I just need
Hi Nadia,
Use this to write your message :
will write error message who are call in your validate method
and will check if these message are present.
Charles Gouin-Vallerand
it would be nice to have the form's action, and the action mapping of that
form's ation.
On Wed, 13 Oct 2004 11:10:51 -0400, Nadia Kunkov wrote
> Hi,
>
> I have gone through multiple postings and followed the suggestions
> about displaying the errors. I just need another pair of eyes to
> look
21 matches
Mail list logo