complete all the cases fot SampleController
print json gotten from server
redirect to dispatcher/sample/home