PDA

View Full Version : Themes


hamsdam
Oct 4th, 2005, 09:53 AM
I want to use themes for my application but I have the error message:

javax.servlet.ServletException: Theme 'default': No message found under code 'base' for locale 'en_US'.

my theme resolver and messsage source are declared bleow:
<bean id="themeResolver" class="org.springframework.web.servlet.theme.FixedThemeRe solver">
<property name="defaultThemeName">
<value>default</value>
</property>
</bean>

<!-- MESSAGE RESSOURCE -->
<bean id="messageSource" class="org.springframework.context.support.ResourceBundle MessageSource">
<property name="basename"><value>messages</value></property>
</bean>


I have different css file for the same theme, so my default.properties file contains more than one css. It works for some jsp pages and not for the others however the declaration are the same in all my jsp.

Thank you very much for your help

davison
Oct 5th, 2005, 09:45 AM
can you post the content of your default.properties file (I assume you have it in the root of your classpath?) and the tag declaration in your JSP that causes the failure?