Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Serialization issue  RSS feed

 
suresh kannan nagarajan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to communicate the applet to servlet. But while passing the JTable object from applet to servlet I'm getting not serialized exception on some refered classes which is refered internally by JTable. Please let me know to resolve this issue, that would be helpful to me.

Thanks in Advance
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.
Why are you passing the table to and fro? Usually one would exchange just the data.
 
suresh kannan nagarajan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just want to save the jtable data into an Excel file in server side. So I'm trying to pass the JTable. Please let me know if you have any feasible suggestion for this issue.
 
Rob Spoor
Sheriff
Posts: 20904
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would start with sending the JTable's TableModel only, but it's probably a better idea to extract the data in a CSV file which can then be uploaded, parsed and inserted. Check out AccessingFileFormats for several CSV handling libraries.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!