• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

global properties file

 
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a problem configuring global.properties file.
I have a following directory structure in my program

src
|
Properties-->global.properties
|
struts2-->package.properties
|
struts2.Register.Action--> RegisterAction class
|
struts2.Register.Model -->Person class
|
struts.xml file


WebRoot
|
WEB-INF
|
register.jsp


struts.xml file is as follow



Here register.jsp page is accessing key present in global.properties file using <s:text /> tag but failing with
WARNING: The first TextProvider in the ValueStack (struts2.Register.Action.RegisterAction) could not locate the message resource with key 'global'
WARNING: The default value expression 'global' was evaluated and did not match a property. The literal value 'global' will be used.

Can you please help in solving the problem with above scenario?
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am also getting the same WARNINGs anybody please help
reply
    Bookmark Topic Watch Topic
  • New Topic