java - How is the DTO objects transferred from client to server in spring-struts web application without implementing serializable -
i have web application developed using spring - struts framework deployed in tomcat 8 server. application hosted in 1 server.
the application code layered
action | bpo | dao | dto | entityobject
only few dto classes implements serializable
interface dto objects being written file using ehcache caching state.
do need implement serializable
interface dto classes?
with reference below link says not necessary implement serializable dto classes.
dto implementation of serializable interface
if how dto object gets transferred client side server side without serialization?
the serializable
used java.io
, it's needed if want keep objects in session. other frameworks using serializable
behind scene perform serialization. if don't know object serialized using java.io.serializable
better add interface dtos.
the client-side might use other serialization json, xml, etc., doesn't affect processes running serialization on server-side , should handled separately code or other framework struts or spring, doesn't matter.
Comments
Post a Comment