• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Spring MVC: spring:bind not resolved?!

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Thomas Becker
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
After trying different controller implementations and setting up the command class properties in the constructor and springapp-servlet.xml and and and...I got it running myself...hhooooorraaay.

The solution was found in the spring supports forum and as I suspected, it was a stupid little, but important thing I've overseen:

http://forum.springframework.org/viewtopic.php?t=9195

I didn't load the spring taglib.

The good thing. I've learned a lot about how spring works, just by trying to get that problem fixed at the wrong places.

Thanks to everybody who would have contributed to my problem.

Cheers,
Thomas
 
Marshal
Posts: 16591
277
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Thomas Becker:
Thanks to everybody who would have contributed to my problem.



I have nothing against turning the other cheek and all that but thanking those who would contribute to your problem is going above and beyond the level of friendliness we ask for on JavaRanch, IMO I guess the ones who were actually thinking of helping with a solution should just give themselves a pat on the back, huh?
 
Ranch Hand
Posts: 1211
Mac IntelliJ IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
LOL
 
Thomas Becker
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ups, usually people tell me, I'm to unfriendly...this is a complete new situation to me. Hehe...

I'm still embarrassed about forgetting such a little thing and trying everything. But at least I learned something while I was torning out my hair.
 
them good ole boys were drinking whiskey and rye singin' this'll be the day that I die. Drink tiny ad.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic