Results 1 to 2 of 2

Thread: Spring Theme does not work

  1. #1
    Join Date
    Aug 2012
    Posts
    5

    Default Spring Theme does not work

    Hi,

    I have a home.jsp in project1/src/main/webapp/WEB-INF/views/home.jsp
    <link rel="stylesheet" href="<spring:theme code='styleSheet'/>" type="text/css"/>

    and in servlet-context.xml I have
    <beans:bean id="themeSource"
    class="org.springframework.ui.context.support.Reso urceBundleThemeSource">
    <beans: property name="basenamePrefix" value="them-"/>
    </beans:bean>

    but it ran into this error >>
    WARN : org.springframework.context.support.ResourceBundle MessageSource - ResourceBundle [them-theme] not found for MessageSource: Can't find bundle for base name them-theme, locale en_US

    please help me
    Thanks

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    It's not an error it is a WARNing... It simply cannot find the language specific theme bundle and will fallback to the default bundle. Make sure that they are readable in the /WEB-INF directory.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •