!!! Listings aus dem Artikel "Frühlingsgefühle"
!!! von Tobias Himstedt in iX 7/05, S. 132
!!! Listing 1:
Hertha
Hackfleisch
Hannover
30625
Helstorfer Str. 7
!!! Listing 2:
import org.springframework.beans.factory.xml.XmlBeanFactory;
..
XmlBeanFactory context = new XmlBeanFactory(
new FileInputStream("applicationContext.xml"));
Person hertha = (Person) context.getBean("hertha");
!!! Listing 3:
logInterceptor
!!! Listing 4
.*
!!! Listing 5
PROPAGATION_REQUIRED
PROPAGATION_REQUIRED
PROPAGATION_REQUIRED
PROPAGATION_REQUIRED
!!! Listing 6
ix.domain.Address
address
/views/enterAddress.jsp
/views/result.jsp
!!! Listing 7
public class AddressController extends SimpleFormController {
AddressDao addressDao;
protected ModelAndView onSubmit(Object command) throws Exception {
Address address = (Address) command;
List result = addressDao.findByStreet( address.getStreet() );
HashMap map = new HashMap();
map.put("addressList", result);
return new ModelAndView(getSuccessView(), map);
}
...
}