Announcement Announcement Module
Collapse
No announcement yet.
What are the spring container classes called Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • What are the spring container classes called

    What are the classes called in Spring in the way from Struts to Hibernate.

    I am using Struts + Spring + Hibernate.

    In struts, I know that we extend ActionForms and Action classes and overwrite methods there. Similarly, which classes do we use in Spring?

    Thanks,

    Angel.

  • #2
    ActionForms - Spring has no need for ActionForms, as you can bind directly to your domain objects. Validation can be done via a Validator interface.

    Action - Spring equivalent is controllers. Spring has several for different occassions. A good one to look at is SimpleFormController.

    Take a look at the JPetStore sample (in the distribution) which can be run using Spring MVC or Struts.

    Comment

    Working...
    X