Search:

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

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Hi jpreston, I tried what you sugested but...

    Hi jpreston,

    I tried what you sugested but unfornately I can't bind the errors. The thing is I want to bind the errors to the command bean. When I try this:


    <form:errors path="command" />
    ...
  2. Hi jpreston After reading your post I relized...

    Hi jpreston

    After reading your post I relized that I haven't bounded the errors to the command bean. I'll give that a try.

    Thanks for your time,
    Martyn
  3. @RequestMapping and the Errors parameter

    Hi All,

    I have a controller and I have defined a method like this:



    @RequestMapping(method = RequestMethod.POST)
    protected ModelAndView processFormPost( @ModelAttribute(value="command")...
  4. Spring MVC + Velocity + multiple layout mappings

    Hi Everybody,

    I used to use sitemesh in combination with jsp pages. After reading about Velocity I gave it a try. I liked the idea but I was somewhat disappointed that it had very poor layout...
  5. I am working in a web enviroment. I have set my...

    I am working in a web enviroment. I have set my web.xml to use spring and to load the applicationContext.xml file. When JBoss starts I see my spring beans being initialized. That works perfectly. I...
  6. Beans initialzied again on loading of xml files

    Hi All,

    I am having a certain problem with Spring since I started learning it a few years ago. If I startup my web enviroment everything works fine including Spring, Hibernate etc. The problem...
  7. I think you are using annotations to map your...

    I think you are using annotations to map your models to the database. It looks like you are misusing the @Column annotation. The annotation should like this:

    @Column(name="Table_name")

    It's...
  8. Replies
    5
    Views
    3,557

    I use to have this problem. I solve it by...

    I use to have this problem. I solve it by restarting tomcat with each deployment. I did this after reading a post on the spring forum where someone explained that this was a problem caused by...
  9. Replies
    5
    Views
    7,785

    This is thrown when hibernate can't load the meta...

    This is thrown when hibernate can't load the meta data from the database because the driver doesnt support that action. It isnt a bug. The database connection should work. I looks like a SQLException...
  10. Replies
    1
    Views
    799

    Validator and sessions

    Hi All

    I was courious why the spring framework doesnt supply any option what so ever that will allow me access the HttpSession in a validator.

    The thing is, I need to access a user object in...
  11. Thanks for your input. After reading your post I...

    Thanks for your input. After reading your post I understand that the service layer doesnt know that there is a transaction manager. After reading your post I immediately saw it myself.

    I have...
  12. DAO and service layer transaction discussion

    Hi all,

    I am designing a large website and I'm doing a study into transactions and the whole DAO and service layer structure. I would like to give my theorie on how it should be but I also would...
  13. I have just downloaded the most recent version of...

    I have just downloaded the most recent version of the odbc14.jar file and now it works
  14. Replies
    16
    Views
    5,319

    I have done all 3 and it still isnt working. I...

    I have done all 3 and it still isnt working. I must say instead of seeing This costs ⬠in the log I see This costs ? so the unknown character has changed from ⬠to ? but still this is not correct.
  15. 2 Options: 1. Create 1 command, controller...

    2 Options:


    1. Create 1 command, controller and jsp page. In the jsp page you only display the options beloning to the current search type. In the controller only search according to the selected...
  16. Replies
    11
    Views
    1,764

    I once installed a web app that used webflow....

    I once installed a web app that used webflow. That is a really bad designed framework. Everything is posted so even redirecting causes F5 to popup that annonying message (That browser repost...
  17. A web application design is as difficult as you...

    A web application design is as difficult as you make it. You are making it very difficult. The simplerer the better.

    Just create 3 controllers and views or create 1 controller and 1 view and only...
  18. It's best to not see example code from me but...

    It's best to not see example code from me but first understand what a singelton object is:
    http://en.wikipedia.org/wiki/Singleton_pattern#Java
  19. In your command bean use a string and in your...

    In your command bean use a string and in your validator use Integer.parseInt() to validate the input, plain and simple.
  20. Replies
    11
    Views
    1,764

    You can use a SimpleFormController for each page....

    You can use a SimpleFormController for each page. When a user posts values on the first page and these are validated you can put these values in the session. This has a few advantages, for example...
  21. Beans are singeltons by default so adding that...

    Beans are singeltons by default so adding that parameter doesnt make any difference at all.

    Why cant you create a singelton object (Not in your configuration but in your VM) that has a get and set...
  22. Replies
    16
    Views
    5,319

    This is a Spring BUG

    I can now confirm that this is a Spring BUG.

    I have done everything and I mean everything. I have added the char set filter, updated the content type of my view resoilver. Added UTF-8 content type...
  23. I have found the solution. I tried to create a...

    I have found the solution. I tried to create a MessageFormat even if the key didnt exist. Now I return null if the key doesnt exist and now it works perfectly. This has to do with the message resolve...
  24. Thank you for your quick response. Is there...

    Thank you for your quick response.

    Is there anyway of setting a error message for a certain field without appending the field name? Is there a way to override the DefaultMessageCodesResolver for...
  25. Add the following line to one of your...

    Add the following line to one of your applicationContext files that are initialized at startup:

    <bean id="multipartResolver"...
Results 1 to 25 of 37
Page 1 of 2 1 2