Dear Team,
I digged days, tried to search on this forum, got some good info for my
question, but still puzzles. We use 1.9.4 with WebWork.
We want default conversion from string on JSP to Date in model using Appfuse
DateConverter. I want to use fixed format yyyy-MM-dd. Then I set
ApplicationResource.properties:
data.format=yyyy-MM-dd.
In JSP I have something like
<input name="agent.beginDate" type="text" value="" size="10"
id="beginDate">
In model Agent.java
...
private Date beginDate;
public void setBeginDate(Date beginDate) {
this.beginDate = beginDate;
}
However, the web page doesn't accept yyyy-MM-dd like 2007-01-01; only
accepts MM/dd/yyyy which is my web server's locale date format.
We also tried to add a file WEB-INF/classes/xwork-conversion.properties:
java.util.Date=DateConverter
//or java.util.Date=com.myorg.util.DateConverter
But it didn't help.
Could you help give some ideas?
Thanks!
-Bruce
--
View this message in context:
http://www.nabble.com/Appfuse-DateConverter-not-working--tf4819248s2369.html#a13787648
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]