constructor « Context « Spring Q&A

1. Spring Application Context available inside the constructor

I am having an issue when trying to create beans from a spring Application Context inside a bean instatiated by sptring using constructor arguments. I have implemented the ApplicationContextAware interface but ...

2. better to setSuccessView in context or constructor?

better to setSuccessView in context or constructor? in the documentation it says its bad practice to hard code a view in your controller. so instead of setSuccessView("redirect:successRegisterMember"); i would do

3. Using ApplicationContextAware to get the context and use it in the constructor?

Hi. I am in a condition where I can use the ApplicationContextAware interface to access the spring context in my class. the problem is that I do not have access to ...