Search:

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

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    345

    I was thinking of a functionality related to XSS...

    I was thinking of a functionality related to XSS protection.

    During the binding process I am checking the values of String properties to be bound in a target object. I verify if they contain not...
  2. Replies
    2
    Views
    345

    Custom data binder in Spring 3.2

    I need to create a custom data binder in my Spring 3.2 application.

    As I learned from this post:...
  3. I solved this by putting whole configuration in...

    I solved this by putting whole configuration in the root container (similar what greenhouse application is doing). But still I don't know why it worked well before.
  4. 3.1.2 -> 3.2.0 issue with EntityManagerFactory

    Hi,

    I have a small project where I wanted to updated from Spring 3.1.2 to 3.2.0. But after updating the libraries, my application does not start anymore. I tried to update other libraries in the...
  5. Works as expected

    I tried this approach with the application that is configured using XML and I removed annotation-driven from it and added @EnableWebMvc annotated configuration class and this works fine.

    Is this...
  6. Bootstrapping Spring MVC 3.1 application with WebApplicationInitializer problem

    I created Spring MVC application in STS 2.8.1 (Version: 2.8.1.RELEASE Build Id: 201111221000) that is initialized with WebApplicationInitializer like this:




    public class WebAppInitializer...
  7. Actually, this is working just fine. But not with...

    Actually, this is working just fine. But not with the BindingResult. See my post with the explanation (I tested this with Spring 3.1.0.RELEASE). See also the comments with some explanation:
    ...
  8. I took the mapping example from JavaDoc of...

    I took the mapping example from JavaDoc of org.springframework.web.WebApplicationInitializer and did not think about it. So with "/app/*" it works perfectly. Thanks a lot.
  9. Spring MVC 3.1.0 M2 - WebApplicationInitializer code-based approach problem

    Today I created new application based on Spring MVC 3.1.0 M2. I would like to bootstrap the application with no web.xml and with code-based approach only. But I encountered a problem. My @Controller...
  10. Replies
    2
    Views
    2,928

    https://jira.springsource.org/browse/SPR-7022 ...

    https://jira.springsource.org/browse/SPR-7022

    Spring 3.1 Backlog. Vote.
  11. Spring MVC 3.1 to the rescue

    http://blog.springsource.com/2011/02/21/spring-3-1-m1-mvc-namespace-enhancements-and-configuration/
  12. How to register MarshallingHttpMessageConverter?

    I got problem. I am using org.springframework.oxm.jaxb.Jaxb2Marshaller with schema validation support.

    Now I want this marshaller is used while converting application/xml and text/xml request to...
  13. Resolved. The problem was not with the...

    Resolved.

    The problem was not with the configuration that is valid. The problem was so obvious that I missed it. I worked with legacy code. Controllers extends from base controller that has...
  14. Serving static resources does not work properly

    I got big problem while trying to configure <mvc:resources /> for static context. It never serves them.

    My spring configuration has following:

    <context:component-scan base-package="com.package"...
  15. Replies
    3
    Views
    857

    I think this is because you expect MyModel object...

    I think this is because you expect MyModel object in your controller method, and one of the request parameter is "a", so it will be bound to the "MyModel.a" field.

    Try removing @RequestParam and...
  16. Replies
    1
    Views
    710

    Look at the...

    Look at the org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveRequestBody method. You can extend the class to support whatever you need, I belive.
    I
  17. Replies
    10
    Views
    8,235

    Recently I read a nice post about custom...

    Recently I read a nice post about custom validations in Spring wizard style controllers. Have a look here: http://www.dzone.com/links/howto_jsr303_validation_groups_in_spring_mvc_3_wi.html

    There...
  18. Replies
    3
    Views
    857

    According to Spring MVC documentation it works...

    According to Spring MVC documentation it works fine: http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html, 15.3.2.11 Mapping request header attributes with the...
  19. Replies
    4
    Views
    823

    I think the problem is with the...

    I think the problem is with the modelAttribute/commandName used by the form that is a java.util.List. There is no bean property ${listItems.category} used as path for the form:select, and that is why...
  20. I am using Spring 3.0.5 and it seems I am having...

    I am using Spring 3.0.5 and it seems I am having the same problem.

    I checked jirra bug (https://jira.springsource.org/browse/SPR-6741) and it states it is resolved.

    With methods that have 3...
Results 1 to 20 of 20