Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Transferring java object(non-serializable) from client side to server side  RSS feed

 
Abdullah Khalaf
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dears,
I have a question, I'm using java applet, this applet reads from USB token information, after validation and after everything, the object which I want to return it from this java applet to server side is not serializable, its type is (KeyStore) object.
the question is, how can I pass this object to server without losing any data that was hold by this object(KeyStore) ??

Your response is highly appreciated.
Thanks a lot and BR,
Abdullah Khalaf
 
Ivan Jozsef Balazs
Rancher
Posts: 992
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Serialization is the standard (built-in) way to do this. If it is not available, you have to roll your own solution.
These methods might come in useful:


 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might look into java.beans.XMLEncoder and XMLDecoder.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!