wood burning stoves 2.0*
The moose likes Other Open Source Projects and the fly likes Exception in parse method of opencsv Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Exception in parse method of opencsv" Watch "Exception in parse method of opencsv" New topic
Author

Exception in parse method of opencsv

Abhishek Mish
Greenhorn

Joined: Dec 21, 2007
Posts: 29
Hi All,
I am using openCsv to bind the csv content to java bean object.
Below is the code snippet,



Above code works fine if my bean class as below



But the problem if setCode of my bean class accept any other datatype other than String. If the getters/setters are changed as below



Then it throws exception while parsing csv file, does that mean it will work only for strings.

Thanks in Advance.
 
jQuery in Action, 2nd edition
 
subject: Exception in parse method of opencsv
 
Similar Threads
Form bean not taking the value when property is disabled in jsp
display result using jsp:getProperty
struts 2: Stuck up with simple issue
doubt with serialization
How to join two tables on columns that have different names?