Search:

Type: Posts; User: pietercoucke; Keyword(s):

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,108

    Use

    Use


    <bean id="customerImpl" class="com.sf.bean.CustomerImpl" singleton="false">
    <property name="sessionFactory">
    <ref bean="mySessionFactory"/>
    </property>
    </bean>

    (without the <list>...
  2. Replies
    2
    Views
    1,335

    Are you using the latest Spring version (1.1.2)?...

    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&#40;getCookieName&#40;&#41;, locale.getLanguage&#40;&#41; + " " +...
  3. Replies
    2
    Views
    1,633

    Also, make sure you have

    Also, make sure you have


    <%@taglib uri="/tags/c" prefix="c" %>

    in your JSP and maybe you can try


    <a href="<c&#58;url value='/done.html'/>">Home</a>
    (note the single quotes)
  4. Replies
    1
    Views
    1,840

    I added a page for this in Wiki...

    I added a page for this in Wiki. Feel free to answer the questions :wink: .
  5. I think you will need to refresh the complete...

    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...
  6. Replies
    6
    Views
    1,910

    I don't think setAttributes is correct. This...

    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&#40;"/welcome.htm", true&#41;;
    Map map =...
  7. This question is not really Spring related, but...

    This question is not really Spring related, but you should have a look at Ant or Maven.
  8. Replies
    1
    Views
    1,267

    The benefit of putting them in views.properties...

    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...
  9. I had the same problem since I'm also trying to...

    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...
  10. If you really want to let users mess around with...

    If you really want to let users mess around with your properties files, you can use standard java code like


    java.util.Properties.load&#40;file&#41;

    And then call setProperty(). You can also save the...
  11. Replies
    10
    Views
    13,892

    I had something similar with...

    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...
  12. Replies
    1
    Views
    1,144

    If you're using JSTL, you can use

    If you're using JSTL, you can use


    <c&#58;forEach var='item' items='$&#123;mySet&#125;' varStatus='status'>
    <option id="<c&#58;out value='$&#123;status.index&#125;'/>" value="<c&#58;out value='$&#123;item.id&#125;'/>"><c&#58;out...
  13. You can use ...

    You can use


    &#40;&#40;ConfigurableApplicationContext&#41;applicationContext&#41;.refresh&#40;&#41;;

    You can get the applicationContext by implementing ApplicationContextAware or with something like

    ...
  14. I think you need to find out what the...

    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...
  15. Replies
    1
    Views
    1,521

    You probably have something like this in your...

    You probably have something like this in your XML:



    <bean id="scheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">

    The SchedulerFactoryBean implements the...
  16. Thread: AOP Cache

    by pietercoucke
    Replies
    0
    Views
    2,218

    AOP Cache

    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)...
Results 1 to 16 of 16