Hi bennet,
I made the neccesary changes to dispatcher-servlet.xml
ok now i created another file called spring-views.xml. place this in the same folder where the dispatcher-servlet.xml is located.
best thing to do is to try to build is simple as possible.
spring follows a very simple flow. I'll try to explain it.
If I'm not mistaken you;re project folder is as follow:
When you're application starts up it will look in the web.xml. The web.xml has a welcome-file-list that tells spring where to start.
the welcome-file-list has a lot of addresses, but only the first acceptable one is used on implementation.
In this case it's our redirect.jsp
the redirect.jsp tells spring which url to parse to generate the requested page.
here we tell the application to always start with the index.htm url.
so spring will now activate the right controller and the is the indexcontroller because index.htm is mapped with indexcontroller in your dispatcher servlet.
your indexcontroller is simpleformcontroller as you said so it should be something like this:
This is a very simpleformcontroller that just renders a page and does nothing else. As you see constructor has been defined for loading a bean on implementation of the controller. This is also configured in your dispacther-servlet.xml where you give your commandclass. A simpleform controller is meant to get information from the page when the form is submitted. the information is thus stored in the commanclass.
you will also notice that the dispachter servlet has a formview defined as "index". so spring will load up the corresponding jsp. This is configured in the spring-views.xml
By the way. I use the following tools: eclipse europa 3.3,
maven 2.0 and deploy on
tomcat 5.5
Do post what you use to build your app.
hope this helps