yoni keren wrote:The situation is that he doesn't know how to implement a servlet at all
yoni keren wrote:... Especially NOT Gson, which by the way, is not that straightforward to use and needs its own lessons if you want to use ANY non trivial datatype, for example any timestamp).
yoni keren wrote:"It's subjective whether Gson is considered hard or easy, so that's irrelevant. "
Compared to one line of code,done automatically, this is absolutely harder than that, and it is very easy to say that,in objective terms.
Oh? No framework at all? really? Are you really suggesting that he might be using sockets? Would you advice for that? For a beginner?
Discouraging?
Stefan Evans wrote:Just to put my 2 cents in, if you are going to be writing server side code to handle a REST API, then take a look at Jersey.
<Protocol:>/contextname/ValidateAccount
{"req":[{"name":"abc","clientid":"SAMPLE"}]}
{"req":[{"name":"abc","clientid":"SAMPLE"}]}
Ron McLeod wrote:
Simple Gson/Servlet example:
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
J. Kevin Robbins wrote:.. what is the point of using GsonBuilder?
Oracle Java SE6 Certified Programmer
Oracle Java EE5 Certified Web Component Developer
Pivotal Certified Spring Professional
Certified ScrumMaster
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
Consider Paul's rocket mass heater. |