Message error validation doesn't appear on my jsp
5 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sebastien_esperance
Posted On:   Wednesday, May 25, 2005 12:53 PM

Hi, When I use the struts validation, it works in my all application except on one case where there are one problem : the message doesn't appear on my jsp. I Have : In validation.xml : datePattern dd/MM/yyyy In Applicationressources.properties : prompt.dateRemise=La date de remise In my Jsp : T   More>>


Hi,



When I use the struts validation, it works in my all application except on one case where there are one problem : the message doesn't appear on my jsp.





    I Have :



  • In validation.xml :










    datePattern

    dd/MM/yyyy












  • In Applicationressources.properties :


    prompt.dateRemise=La date de remise






  • In my Jsp :






    Test :












I only see on my JSP:

Test :



Any idea?



Thanks for reply.    <<Less

Re: Message error validation doesn't appear on my jsp

Posted By:   Ganesh_Kumar  
Posted On:   Friday, June 10, 2005 07:26 AM

PLs check ur XML file , is that pointing ur ApplicationResources file correctly...Else the error message will never seen in ur JSP page

Re: Message error validation doesn't appear on my jsp

Posted By:   sebastien_esperance  
Posted On:   Friday, June 10, 2005 03:34 AM

I found.


It's afflicting.


On my JSP, I forgot this :

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>

Re: Message error validation doesn't appear on my jsp

Posted By:   Anand_Sawant  
Posted On:   Saturday, May 28, 2005 06:00 AM

Hi,

There could be just one possible problem as i can see from your code:

  • The message-resources bundle may not be available in the framework (this is more likely coz the errors are returned as it enters the tag) and you can see Test :.

    Try this tag in struts configuration file




    The parameter must be your path to Applicationressources.properties.You could change it as needed.




    Cheers,

    Anand Sawant

  • Re: Message error validation doesn't appear on my jsp

    Posted By:   alan_do  
    Posted On:   Wednesday, May 25, 2005 04:09 PM

    instead of html:messages, try using simply in your jsp instead (note that you DO NOT need to iterate).

    Re: Message error validation doesn't appear on my jsp

    Posted By:   sa_pa  
    Posted On:   Wednesday, May 25, 2005 01:38 PM

    I am getting the same error for couple of days now. Can somebody provide a link to tutorial or example?
    About | Sitemap | Contact