Search:

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

Search: Search took 0.02 seconds.

  1. Replies
    5
    Views
    3,697

    It seems that dateFormat.setLenient(false) doesn't work!

    I see carefully the source code of CustomDateEditor and find that dateFormat.setLenient(false) doesn't work. I write my own MyCustomDateEditor as such:

    import java.beans.PropertyEditorSupport;...
  2. I use other solution!

    I still use common validator to validate other properties but birthday property and depend on CustomDateEditor to validate birthday. If I input error date format :"20030301", I catch binding...
  3. Replies
    5
    Views
    3,697

    I meet the same case!

    Yeah, I meet the same case. Is it a bug.
  4. thanks for your reply!

    Thanks for your reply! I try to use your code .But the problem still stand
    there . I think that the problem is not CustomCustomDateEditor but the validator . When I input something as "2005/01/01"...
  5. It seems that my validator can't work when validating

    My validator is org.springframework.validation.commons.BeanValidator .
    When I set my AddEmployeeFormController's validateOnBinding to false,
    the problem disappear . It seems that the validator...
  6. Date binder don't work although CustomDateEditor is registed

    I now use Spring MVC to develop and meet one strange problem . I have one Command class Employee which has one property named birthDay.My
    Employee class likes :
    Employee {
    private java.util.Date...
  7. Replies
    3
    Views
    1,603

    I meet the same problem , this is my solution.

    I write my own servlet which extends org.springframework.web.servlet.DispatcherServlet,and the code is
    simple:

    import javax.servlet.http.HttpServletRequest;
    import...
  8. My solution for such case:it does work!

    When I use commons-validator with Spring MVC ,I meet the same problem. After I try many times , I found that you must put your message
    bean define into root application Context , thus it can find...
  9. Replies
    4
    Views
    2,179

    It does work with hibernate

    What Rexxe said is right .I use my UserDAO which extends org.springframework.orm.hibernate.support.HibernateDaoSupport and implements org.springframework.orm.hibernate.support.HibernateDaoSupport. It...
  10. Good Security for me !

    I buid a demo with Acegi and use my own UserDetail implement . It does work fine .Very Thanks For Agegi:) My plan is to build a demo which use
    Spring MVC + Acegi + hibernate + Struts Tile + Common...
  11. Do you palce log4j.jar into your classpath?

    I meet the same problem when I use resin.When I place log4j-1.2.8.jar into my classpath , it does work ! You can try it:)
  12. Replies
    4
    Views
    3,854

    thanks very much !

    What you say is right . I use resin's pool .It maybe the reason. Thanks for your quick and good reply !
  13. Replies
    4
    Views
    3,854

    my conf

    I use spring 1.1 and hibernate 2.1.6 . My code is used for get Page results.
    I use it in my test environment, there is no problem .But when deploy to product environment .It give me such Exception...
  14. Replies
    4
    Views
    3,854

    Could not toggle autocommit

    I use spring + hibernate first . But i soon like it. It really is a good framework. In my practice ,I met a question : could not toggle autocommit.My exception trace is :

    19 十月 2004 16:36:32 | SQL...
Results 1 to 14 of 14