struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maven apache <>
Subject any option parameter for populating parameters to my bean?
Date Thu, 09 Dec 2010 09:37:42 GMT
My action:

public class MyAction{
  private MyBean bean;
  //getter setter.....

public class MyBean{
  private Date start;
  //setter getter....

<s:textfield .... name=bean.start />

If the value of start is '2010-12-12 12:00:00',the parmameter start can be
populated to my bean correctly,however if the format is '2010/12/12
12:00:00',it will show me a error "can not parser the date',so I wonder if
there is any parameter can be set for populating parameter?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message