This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
what should be there for names on controller command bean??
Not that this answers your question.
But personally, I wouldn't use the older controller classes anymore. That is so Spring 2.0. ;)
Today in Spring 3.0 with RESTful Web Services so easy to implement, I would configure the ContentNegotiatingViewResolver with JSONView from the Jackson library. (easy to get the library), then have a POJO controller that returns your Java object that holds the data. Then have the JSON automatically generated by the incoming URL request stating that you want it in JSON by adding ".json" to the end of your URL, or changing the accept header of the URL request to ask for json.