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;...
Type: Posts; User: scqlbw; Keyword(s):
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;...
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...
Yeah, I meet the same case. Is it a bug.
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"...
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...
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...
I write my own servlet which extends org.springframework.web.servlet.DispatcherServlet,and the code is
simple:
import javax.servlet.http.HttpServletRequest;
import...
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...
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...
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...
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:)
What you say is right . I use resin's pool .It maybe the reason. Thanks for your quick and good reply !
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...
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...