Hey everybody,
Introduction how I got to spring (skip if you're not interested):
I just bought the book: "Rod Johnson - Developing
J2EE w/o EJB" since I got annoyed about some ejb issues and interested in it's alternatives.
I only developed some small applications and tried out hibernate and stuff and want to learn more about
Java, OOP and J2EE. I'm a administrator of some real big high availability Java Applications, not officially a developer, but very interested in developing.
This book then turned out not only very good, but Rod makes a lot of advertising for his springframework. So I got interested and here we go, I tried the Spring MVC - Step by Step. Examined the petclinic and petstore spring example apps and now I'm trying to extend my knowledge by building some application based on the knowledge from the tutorials and the example apps and got stuck with a stupid problem.
Problem:
I added a User bean, UserManager, some persistence incl. DAO
pattern and a form + validator to add new users. Tried to stick to the way it was done in the tutorial and changed a few parts.
Validation is working fine, but the appropiate error messages are not resolved on the view.
For example:
Is shown in the html source as following:
And I really don't find the problem. I tried thousand things. Compared my application to the examples and to the tutorial, but I'm really stuck. I guess it's a stupid little thing what I've overseen.
This is really frustrating since I already have a few ideas what I want to try next (replace plain
jdbc with hibernate, ...).
If you're interested in the code I wrote, you can enter my subversion repository. I'm interested in any feedback to that code, since I want to improve myself and learn and this is my very first steps in spring.
ssh+svn://ashaman.dyndns.org:2222
User/Password: svnread/readsvn
Reposdir: /data/subversion/projects
Thanks a lot for any help!
Thomas