This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
I have been using Java for a few years, nothing more than writing a few programs, UIs etc etc. I am now attempting to create a web site (locally) with HTML and Java. I have a range of data entry boxes (relating to attributes of database table), that can be either viewed in the browser client, or the mobile client.
My question is how would one go about communicating this page structure and data between the server and client. There are a variety of options out there, using HTTP GET and POST, or through socket communications. I was wondering if someone would point me to a path so I can start research on how to build up my server and clients. I am confused about the structure of how the data is sent. All socket examples I have seen are passing single byte streams, however I would require a multitude of byte streams and potentially media (such as images). Can either of these work?