Hello guys! How are you?
Okay, I am a beginner for Spring Web Application Development. I will share my knowledge and experience and also to practice my English Written skill.
What will you need to develop web application using spring? yeah, there are 4 elements that you must downloaded. those are:
- Eclipse IDE for EE programming, eg: KEPLER, JUNO, LUNA, etc.
- Apache Tomcat jar (in this practice I use version 6.0.3)
- Spring Framework jar (in this practice I use version 3.1.1.RELEASE)
- Apache common logging jar (in this practice I use version 1.2)
The first time, you must understand about Model View and Controller programming concept, because Spring Framework is a Java Web Application framework which uses Model View and Controller programming Concept. Model includes service classes, Domain objects and all data access objects. View includes all data with *.jsp extension, and controller only need to be written in java class.
bellow are the simple example for developing MVC Web programming using Spring.
- please set up the server Runtime Environment in your Eclipse IDE using apache tomcat like bellow:
- create the new Dynamic Web Project using Apache Tomcat server
- create simple greeting sentence in index.jsp file
- set a welcome - file to be index.jsp file in the web.xml
- create servlet name inweb.xml
0 comments:
Post a Comment