Announcement Announcement Module
Collapse
No announcement yet.
Parent Controller for both Controller & SimpleFormContro Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Parent Controller for both Controller & SimpleFormContro

    I typically put a BaseAction/BaseController class in my webapp for convenience methods that the subclasses can share. However, with Spring MVC it seems like I can't have a common parent for both Controller and SimpleFormController. I'm probably missing something - I only briefly looked at it.

  • #2
    Hi.

    Controller is an interface, SimpleFormController is a class implementing this interface.

    For common functionality, try extending org.springframework.web.servlet.mvc.AbstractContro ller.

    Comment

    Working...
    X