Use
<bean id="customerImpl" class="com.sf.bean.CustomerImpl" singleton="false">
<property name="sessionFactory">
<ref bean="mySessionFactory"/>
</property>
</bean>
(without the <list>...
Type: Posts; User: pietercoucke; Keyword(s):
Use
<bean id="customerImpl" class="com.sf.bean.CustomerImpl" singleton="false">
<property name="sessionFactory">
<ref bean="mySessionFactory"/>
</property>
</bean>
(without the <list>...
Are you using the latest Spring version (1.1.2)?
Because when I look on line 152 of the CookieLocaleResolver class, I see
cookie = new Cookie(getCookieName(), locale.getLanguage() + " " +...
Also, make sure you have
<%@taglib uri="/tags/c" prefix="c" %>
in your JSP and maybe you can try
<a href="<c:url value='/done.html'/>">Home</a>
(note the single quotes)
I added a page for this in Wiki. Feel free to answer the questions :wink: .
I think you will need to refresh the complete application context, because the properties from the PropertyPlaceHolderConfigurer are set in the beans in the configuration. After that a lot of...
I don't think setAttributes is correct. This method is for static parameters.
I think you need to do something like
RedirectView view = new RedirectView("/welcome.htm", true);
Map map =...
This question is not really Spring related, but you should have a look at Ant or Maven.
The benefit of putting them in views.properties is that you can easily change to another view when you want, by just replacing org.springframework.web.servlet.view.JstlView with ExcelView for...
I had the same problem since I'm also trying to avoid to use the queryString since this gives better Google rankings and crawling. Below some code I use, the idea is basically that in my...
If you really want to let users mess around with your properties files, you can use standard java code like
java.util.Properties.load(file)
And then call setProperty(). You can also save the...
I had something similar with ReloadableResourceBundleMessageSource in an earlier release of Spring, but using ResourceBundleMessageSource worked for me. I don't know if this is changed in the...
If you're using JSTL, you can use
<c:forEach var='item' items='${mySet}' varStatus='status'>
<option id="<c:out value='${status.index}'/>" value="<c:out value='${item.id}'/>"><c:out...
You can use
((ConfigurableApplicationContext)applicationContext).refresh();
You can get the applicationContext by implementing ApplicationContextAware or with something like
...
I think you need to find out what the SQLException is exactly. Probably there's a connection timeout if you're using a connection pool. In MySQL you can add &reconnect=true to the database...
You probably have something like this in your XML:
<bean id="scheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
The SchedulerFactoryBean implements the...
I've written an AOP interceptor which allows you to specify which methods to cache for Spring beans.
Different cache providers are available: Memory HashMap, EHCache, OSCache(which is clusterable)...