updated with spring mvc example