Re: Rewriting an application in Struts2 from Struts 1

2012-10-19 Thread Srineel Mazumdar
Also would like to add another thing : If I add the following line : then I think I do not need to add namespace in all the entries?? On Fri, Oct 19, 2012 at 9:28 AM, Srineel Mazumdar wrote: > Hi, > > I am trying t rewrite the jpetstore project in Struts 2. I am referring to > the Struts 1 i

RE: implementaiton advise on custom TextProvider

2012-10-19 Thread Davis, Chad
Thanks man! I'll check it out this morning. I think the protected seems like a great idea. It's an interesting question, whether to make such things protected or private. > -Original Message- > From: Lukasz Lenart [mailto:lukaszlen...@apache.org] > Sent: Thursday, October 18, 2012 11:

Re: getText in error messages: resource bundle or bean value?

2012-10-19 Thread J. Garcia
You are right! On Fri, Oct 19, 2012 at 2:54 PM, Hoying, Ken wrote: > I believe that your problem is that the field names are the same as your > label names and with the validator both are in the stack. > ${getText(user.password)} is first evaluating user.password and finding the > field value "12

RE: getText in error messages: resource bundle or bean value?

2012-10-19 Thread Hoying, Ken
I believe that your problem is that the field names are the same as your label names and with the validator both are in the stack. ${getText(user.password)} is first evaluating user.password and finding the field value "1234". getText is then trying to locate an entry for "1234" and cannot find

Re: getText in error messages: resource bundle or bean value?

2012-10-19 Thread J. Garcia
Mi mistake. Sorry. The resource error message I was using is in fact: errors.confirmPassSame=The ${user.confirmPassword} field has to have the same value as the ${user.password} field. whereas it should be: errors.confirmPassSame=The ${getText("user.confirmPassword")} field has to have the same

getText in error messages: resource bundle or bean value?

2012-10-19 Thread J. Garcia
Hi, I'm having a problem with getText(). I have the following xml validator: (user.confirmPassword.equals(user.password)) And the error message is defined in a bundle like this: error