-
Problem in Date input from JSP page
Hi,
I'm trying to get a Date input from a jsp page and store it in the database for my struts application.
And this is the error i'm getting :
java.lang.IllegalArgumentException: argument type mismatch
the tag that i have is used :
<html:text property="invoiceDate" styleId="textdate" readonly="true" size="28" value="${sellingInvoice.invoiceDate}"/>
And here is my formbean
public class SellingInvoiceForm extends ActionForm {
private String invoiceDate;
public String getInvoiceDate() {
.................
}
public void setInvoiceDate(String invoiceDate) {
..............
}
}
and the DTO
public class SellingInvoice {
private Date invoiceDate;
public Date getInvoiceDate() {
.................
}
public void setInvoiceDate(Date invoiceDate) {
..............
}
}
IS both the DTO and the bean are declared correctly? and if so, what code should i write in the getters and setters for both of them so that my code can goes fine without this error?
Similar Threads
-
Replies: 1
Last Post: 10-04-2006, 06:06 AM
-
Replies: 0
Last Post: 08-15-2005, 08:43 AM
-
By Erik Stell in forum XML
Replies: 0
Last Post: 03-18-2002, 10:59 AM
-
Replies: 2
Last Post: 01-13-2001, 11:23 PM
-
Replies: 1
Last Post: 07-26-2000, 02:16 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks