This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

How to write customized Tag handler in Struts 2  RSS feed

 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have below requirment.

I have two message resource properties file. for Example. - ApplicationResources.properties and ApplicationResources-Extn.properties. I have some key values in both files but both are different. ApplicationResources-Extn.properties is used for customization of message. My requirment is that when ever i use for example <fmt:message key="mainMenu.title" />, First it has to look in to ApplicationResources-Extn.properties to get the values. If it not found there, then it will go and do lookup in ApplicationResources.properties file and return back the value.

Please suggest how i can do this.

Regards,
Sunil
 
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you need two resource bundles, what will happen if you are having all the values in a single file.
 
xsunil kumar
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one resource file for product. Second resource file may contain same key or may not. Second one will be used for customization. If I want to customize for one customer, then i will change value in second file. If customization is not required, then it will pick from first resource file.

So in one way i am avoiding duplication of properties file and want to achieve customization also.

Do you have any idea. I need to consider localization also.

Regards,
Sunil
 
xsunil kumar
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got some idea how to write such type of code. I have downloaded source code for tag lib and customized my class to get the desired result.

Regards,
Sunil
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post your idea
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!