When using with Spring 2.5, What is best way to prepare data for Tiles.

1- Prepare data in Spring controller or set the delegator property with
methodNameResolver for controller and put data fetch logic in it.

2- After some validation etc controler can throw ModeView to render tiles.
Tiles preparer class can then fetch required data for it from DB.

What can be pros and cons of two apparoaches or any other better alternate.

thanks

Reply via email to