Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences


Referenced by
AppFuseSupport




JSPWiki v2.2.33

[RSS]


Hide Menu

AppFuseStrutsDates


Difference between version 7 and version 6:

At line 25 changed 1 line.
Now, struts will not set a Date object on your form (even if you apply the datePatten dd/MM/yyyy).
Now, struts will not set a Date object directly from your form (even if you apply the datePatten dd/MM/yyyy).
At line 27 changed 1 line.
So you need a field to capture the string input:
So you need a field to capture the string input of the dob field, so now your Form looks like this:
At line 30 changed 1 line.
private String dobString;
public MyForm {
java.util.Date dob;
String dobString;
}
At line 33 changed 1 line.
Struts only seems to be able to set the date property as a java.lang.String... you will of course need getters and setters on these as well.
You will of course need getters and setters on these as well.

Back to AppFuseStrutsDates, or to the Page History.