Link to home
Start Free TrialLog in
Avatar of Tounsi
Tounsi

asked on

taglib fmt to format date

Hi experts,
I'm a newbie with taglibs. I'm trying to format a numeric value that a got fom the databse into a date. i get the following eror message:
javax.servlet.jsp.el.ELException: Attempt to convert String "20060802" to type "java.util.Date", but there is no PropertyEditor for that type
here is my code to format the date:

<fmt:formatDate value="${PODetails.objPOValueObject.poDate}" pattern="dd.MM.yyyy" />

and here is the code in my bean:

public class POValueObject {
private String m_strPODate;
      /**
       * @return Renvoie m_objPODate.
       */
      public String getPoDate() {
            return m_strPODate;
      }
      /**
       * @param date m_objPODate à définir.
       */
      public void setPoDate(String strPODate) {
            m_strPODate = strPODate;
      }
}

any input would be appriciated.
ASKER CERTIFIED SOLUTION
Avatar of vsubram2
vsubram2

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial