• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

getting messages from MessageResources file

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I have created a small struts application.That application is working well accept error messages from Message Resources file are not appearing in my jsp page.
Here are details about my application

My resource file is in
.../WEB-INF/src/resources/LoginResource.properties
and in
.../WEB-INF/classes/resources/LoginResource.properties

My struts-config.xml entry is


Validate method in ActionForm is

JSP code through which i am trying to print error messges is


And my message resources file is

When i am trying to run this application,messages are not displaying and i am not getting any errors.

For testing i inserted in println statements in validate method.Those print statements are also not displaying in console.
So i think control is not able to reach validate method.
Do i need to add anything to Web.xml file to use message resources file?
Can any body please tell me solution to this problem.
Thanks in advance.
Kukunuri.
[ September 09, 2008: Message edited by: sirisha kukunuri ]
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm a little rusty on it, but does your action form need to extend ValidatorForm?
 
There is no beard big enough to make me comfortable enough with my masculinity to wear pink. Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic