Search:

Type: Posts; User: dju`; Keyword(s):

Search: Search took 0.03 seconds.

  1. Replies
    0
    Views
    229

    Set active profiles in XML ?

    Hi,

    Using Spring 3.1, is there a way to set the active profiles from the XML configuration file? Especially using property placeholders...

    Thanks,
  2. Replies
    2
    Views
    1,838

    Same error here. Any help please ? Thanks

    Same error here. Any help please ? Thanks
  3. Replies
    0
    Views
    1,418

    SimpleJdbcTemplate and autocommit

    Hello,

    In my application DAOs I'm trying to use SimpleJdbcTemplate and HSQLDB in file mode, with no transaction. I'm afraid autocommit doesn't work because changes to the database are not...
  4. You're right, the JstlView and JstlUtils classes...

    You're right, the JstlView and JstlUtils classes do all the magic by setting a LocalizationContext for JSTL tags to work. And it also sets the locale ! That is : fmt:message tags will use the...
  5. OK but in this case I would add...

    OK but in this case I would add "org.springframework.security.messages" to the bean definition in applicationContext.xml, where it does not "belong" to : Spring Security related things should be in...
  6. I can understand fmt:message doesn't use the...

    I can understand fmt:message doesn't use the configured Spring locale resolver and use HTTP header resolution instead, but why/how can it use the configured ResourceBundleMessageSource bean ? I've...
  7. multiple ResourceBundleMessageSource bean definitions

    Hello,

    Is it possible to use multiple ResourceBundleMessageSource bean definitions, or merge multiple resource bundle basenames into the same ResourceBundleMessageSource bean ?

    In my web...
  8. Replies
    4
    Views
    1,745

    Another solution which avoids creating a new...

    Another solution which avoids creating a new MessageCodesResolver instance for each request:

    In your controller:

    @Resource
    private MessageCodesResolver messageCodesResolver;

    @InitBinder...
  9. Replies
    4
    Views
    1,745

    In your controller initBinder method, put the...

    In your controller initBinder method, put the following :


    DefaultMessageCodesResolver messageCodesResolver = new DefaultMessageCodesResolver();
    messageCodesResolver.setPrefix("validation.");...
  10. Replies
    0
    Views
    589

    roles based on concurrency?

    Hello,

    For my web application I'd like to obtain the following behaviour : for a given user, the first logged user has ROLE_A, the next (concurrent) logged users have ROLE_B.

    Is there a way to...
  11. Replies
    3
    Views
    965

    Thank you for this explanation, this makes sense.

    Thank you for this explanation, this makes sense.
  12. Replies
    3
    Views
    965

    file upload: redisplay filename

    Hi,

    I have a form with a file input type field. This form is redisplayed if the uploaded file doesn't match a certain criteria. However, I would like the input field to hold the previous filename....
  13. Replies
    1
    Views
    758

    I'd also be interested in knowing the replacement...

    I'd also be interested in knowing the replacement mechanism.
  14. Replies
    2
    Views
    1,666

    Access the model from a JSP view

    Hello,

    I believe the traditional way to access the model from a JSP view is to use EL. For example, to display the user name, I would use in my JSP:


    ${user.name}

    Actually I'd like to use...
  15. Replies
    8
    Views
    1,515

    I don't think it is necessary: order default...

    I don't think it is necessary: order default value is Integer.MAX_VALUE according to the AbstractHandlerMapping javadoc.
  16. Replies
    8
    Views
    1,515

    I see. But the fact to rename it to "Controller"...

    I see. But the fact to rename it to "Controller" would make it loose its meaning, in the source code point of view... and I don't want my controller to handle bogus requests. I just need a mapping...
  17. Replies
    8
    Views
    1,515

    Then other mappings would map to the Controller...

    Then other mappings would map to the Controller too, which is undesirable: I still need 404 errors.
  18. Replies
    8
    Views
    1,515

    Sorry I don't get it. Call what Controller or...

    Sorry I don't get it. Call what Controller or Form ? My controller class name has to be HomeController for ControllerClassNameHandlerMapping to work with URL "/home", right ?
  19. Replies
    8
    Views
    1,515

    Root URL and @Controller annotations

    Hello,

    I'm using the ControllerClassNameHandlerMapping and Controller annotations for my Spring MVC web application. I'd like to configure the DispatcherServlet to redirect requests to the root...
Results 1 to 19 of 20