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.ELExc eption: 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.objPOVa lueObject. 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.
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.ELExc
here is my code to format the date:
<fmt:formatDate value="${PODetails.objPOVa
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.