views:

487

answers:

2

I am trying to create a a simple Spring dispatcher Servlet as a base for my application. I want to initialize logging and security in the controller and then redirect the user to my application. I have tried several examples from the net, but it is not working. Please share with me a complete code so that I could try it. I do not want a form controller, since I will not be displaying any form for this. This is very critical, Kindly share this asap.

A: 

Here comes a very basic example:

http://www.vaannila.com/spring/spring-simple-form-controller-1.html

And you can download the complete code, excluding the jar files, here:

http://www.vaannila.com/spring/spring-simple-form-controller-5.html

Hope this helps.

Winston Chen
A: 

Have you tried the offical Developing a Spring MVC application step-by-step tutorial?

matt b