RE: Differences in error validation between 1.0 and 1.1b?

2002-09-30 Thread Billerby Erik

Thanks!

That did the job!

Before I saw a message like this "???en.Part.partNo???" instead of the message, but it 
seems like 
they "fixed" that. 

Regards
/Erik


-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED]]
Sent: den 30 september 2002 14:43
To: Struts Users Mailing List
Subject: Re: Differences in error validation between 1.0 and 1.1b?


2002. szeptember 30. 14:36 dátummal Ronald Rotteveel ezt írtad:
> Don't you have to call the method saveErrors() ?

No. Not in the validate method. It returns ActionErrors. 

Do you have the appropriate message in your resourcebundle?

Tib

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

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




Re: Differences in error validation between 1.0 and 1.1b?

2002-09-30 Thread Gemes Tibor

2002. szeptember 30. 14:36 dátummal Ronald Rotteveel ezt írtad:
> Don't you have to call the method saveErrors() ?

No. Not in the validate method. It returns ActionErrors. 

Do you have the appropriate message in your resourcebundle?

Tib

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Differences in error validation between 1.0 and 1.1b?

2002-09-30 Thread Ronald Rotteveel

Don't you have to call the method saveErrors() ?

Regards,

Ronald

- Original Message -
From: "Billerby Erik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 30, 2002 2:29 PM
Subject: Differences in error validation between 1.0 and 1.1b?


> I have recently upgraded to struts 1.1b and I notice that all error
messages stored in ActionErrors from the validate-method of the form bean
has disappeared when trying to display them using .
>
> The only change I have made is upgrading struts. Something has happened.
What?
>
> Here is my validate-code:
>
> public org.apache.struts.action.ActionErrors validate(
> org.apache.struts.action.ActionMapping mapping,
> javax.servlet.http.HttpServletRequest request) {
> ActionErrors errors = new ActionErrors();
> request.
> if ("save".equalsIgnoreCase(action)) {
> if ("".equalsIgnoreCase(getPartNo())) {
> errors.add("partNo", new ActionError("Part.ePNOM"));
> }
> }
>
>
> return errors;
> }
>
> In the jsp I just have:
>
> 
>
> Please help
> /Erik
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: