I am new to Spring MVC 3 and I understand the basic concepts. I am able to do simple things like create controllers and services and views. However, I haven't made a foray into more advanced territory. Hence, I apologize if this question seems silly (or impossible).
I am wondering if there is a way to intercept the view and/or response and modify it before it gets sent to the client? I imagine this is how Spring performs data binding to form elements on the way out to the client. What I would like to do is inspect annotations on elements within a domain class and modify the view according to those annotations. This will involve injecting new code (HTML or Javascript) into the response.
UPDATE
As I thought about this a bit more, I realized that the final rendering is done by the JSP. So I guess the question is if there is a way to intercept the model before it moves out to the page and to figure out the annotations on the bean that the data is being bound to.
Is there a way to do this?