Search:

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

Search: Search took 0.03 seconds.

  1. Replies
    3
    Views
    668

    How do I handle this situation?

    I have a DAO class(the following code), which have a reference of entityManager.

    After spring inject the value of entityManager, I want to use that value to create another class object.

    In the...
  2. Replies
    1
    Views
    1,240

    spring 3 MVC and JSR 303 validation.

    The following class is my @ModelAttribute:

    public class AddUser {
    private String email;
    private String password;
    private String confirmPassword;
    ....
    }
    In my jsp code, the error...
  3. Can I using @Value inside of @Controller??

    I want to inject a integer value from my properties file into my controller class.
    My Controller class:

    @Controller
    public class TestController {

    @Value("${task.page.size}")
    private int...
  4. Replies
    2
    Views
    812

    Thanks for your information. If I already have...

    Thanks for your information.

    If I already have the following configuration, can I reuse the propertyConfigurer bean?

    <bean id="propertyConfigurer"...
  5. Replies
    2
    Views
    799

    My workaround: change annotation into xml.

    My workaround:
    change annotation into xml.
  6. Replies
    2
    Views
    812

    @Inject from properties file

    In xml, we can use value="${...}".
    But when I use @Inject, how can I inject the value from properties file?

    Thanks.
  7. Replies
    2
    Views
    799

    fixedDelay from properties file?

    I defined the timer as the following:

    @Scheduled(fixedDelay=5000)
    public void doSomething() {
    ...
    }
    How can I read the interval:"5000" from a properties file?

    Or I have to use XML...
  8. How can I keep the inputting error value?

    My controller class:

    @Controller
    @RequestMapping("/test/form")
    public class FormController {

    @Resource(name="supportedLanguages")
    private List<String> supportedLanguages;
    ...
  9. Replies
    2
    Views
    5,066

    Finally, the following code works fine. ...

    Finally, the following code works fine.


    <http auto-config="false" entry-point-ref="loginUrlAuthenticationEntryPoint">
    <custom-filter position="FORM_LOGIN_FILTER" ref="myAuthenticationFilter"...
  10. Replies
    2
    Views
    5,066

    using my own FORM_LOGIN_FILTER

    The following MyAuthenticationFilter class is my own Filter:


    public class MyAuthenticationFilter extends UsernamePasswordAuthenticationFilter {
    ...
    }

    In my application context file, I try...
  11. Replies
    2
    Views
    536

    my problem solved. thanks.

    my problem solved.
    thanks.
  12. Replies
    2
    Views
    536

    @Transactional and @Resource

    The following code works fine:


    In my applicationContext xml:
    <bean id="userTR" class="arden.transaction.UserTR" p:userDao-ref="userDao"/>

    In My java code:
    @Transactional(readOnly = true)...
  13. Replies
    0
    Views
    1,472

    spring 3.0 annotations

    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    ...
  14. Replies
    1
    Views
    2,313

    spring MVC with dynamic jasperreport

    In my previous project, I use the following way to display jasperreports:
    views.properties


    accountReportPdf.class=org.springframework.web.servlet.view.jasperreports.JasperReportsPdfView...
  15. How can I use errors.fieldErrorCount('fieldname') in JSTL?

    When I use fieldErrorCount without parameter, it works fine.

    <spring:hasBindErrors name="editUserCommand">
    <c:out value="${errors.fieldErrorCount}"/>
    </spring:hasBindErrors>

    When I use...
  16. Finally, I add 3 lines in attemptAuthentication()...

    Finally, I add 3 lines in attemptAuthentication() of AuthenticationProcessingFilter class and replace original class in jar file.
    Now, everything works fine.

    If I can config...
  17. How to config AuthenticationProcessingFilter in spring security 2.0.4?

    The following is my spring security configuration:


    <?xml version="1.0" encoding="UTF-8"?>
    <b:beans xmlns="http://www.springframework.org/schema/security"
    ...
  18. If I change localeResolver from...

    If I change localeResolver from CookieLocaleResolver into AcceptHeaderLocaleResolver:

    <bean id="localeResolver" class="org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver"/>

    Then I...
  19. spring security error message I18N problem

    My spring application context:



    <bean id="localeResolver" class="org.springframework.web.servlet.i18n.CookieLocaleResolver">
    <property name="cookieName" value="clientlanguage" />...
  20. Does JmsInvokerServiceExporter support asynchronous invocation?

    I am using JmsInvokerServiceExporter, which works fine. But client will be blocked, I read lingo homepage, which supports asynchronous invocation.
    If JmsInvokerServiceExporter already supports this...
Results 1 to 20 of 20