Spring in einer Web-Applikationen nutzen - so einfach ist das
Mit dem WTP ist es eine Sache von Minuten.
Lege ein Dynamic-Web-Projekt an. Nenne es etwa spring.
Aus dem Spring-all-in-one-glücklich.zip kopiere spring.jar und common-loggings.jar in das WEB-INF/lib.
Lege in WEB-INF eine Datei applicationContext.xml.
Setze in die Datei:
"http://www.springframework.org/dtd/spring-beans-2.0.dtd">
Setzte in WEB-INF/web.xml die Zeilen:
contextConfigLocation/WEB-INF/applicationContext.xmlorg.springframework.web.context.ContextLoaderListener
Schreibe eine index.jsp
Das war’s. Unter http://localhost:8080/spring/ gibt’s dann das Datum.