I have begun some serious reading on this framework and i am seeing where and how DI is done. The examples i looked at showed me values that were hard coded and referenced but non really on from the UI to the database. I am wondering, just looking at the bigger picture here i was wondering in a real world application where this is actually integrated with an AJAX framework how is the information (user input) gets to the beans.
Tell me if i have this process correct is it that the java script makes a call to the container to find the function (through mapping), setters are used to set the bean (POJO) values for the classes from the user input, then the beans already being injected uses these values to preform the functions.I just want to be clear on the process and the roles of the various technologies of how the data gets from the UI to beans to complete the transaction.
The Ajax request makes some http call. The spring XML (or annotations) maps the route to a controller. The URL parameters are decoded by spring and mapped (and optionally validated) into a command object (which was a param to the controller method). Then some db lookup and/or business logic happens. Since its an Ajax call you would normally return json which is generated by some mapping library (Jackson, gson, etc).