• 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

Spring Message Reources - Struts tags

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm using struts tag in my jsp and i'm trying to load message resources thro'Spring's ApplicationContext. But i'm ended with the error message

============================================================================

Cannot find message resources under key resources.Title

============================================================================

Here is the entry from <b>applicationContext
===============================================

<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
<property name="basenames">
<list>
<value>resources.images</value>
<value>resources.Title</value>
</list>
</property>
</bean>


Here is the code snippet from <b>JSP page
==========================================================

<bean:message key="title.company" bundle="resources.Title" />

Is it possible to use the struts tag to access MessageResources loaded by Spring ApplicationContext? Can i use like these or not? Your suggestions or ideas will be greatly appreciated.

Thanks,KAMS
 
sakthi kams
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
With addition that my requirement is, i don't want to use Action Servlet to load Message Resources. I need to achieve this without using ActionServlet struts-config.xml. You may wonder that Why? The fact is that all these JSPs are [nearly 400 JSPs] already developed using Struts. hence if i start to use <spring:message> or JSTL's <fmt:message> i need to change all these files.
 
reply
    Bookmark Topic Watch Topic
  • New Topic