Announcement Announcement Module
Collapse
No announcement yet.
Initialize bean that has HashMap Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Initialize bean that has HashMap

    How to I initialize the PageMappingBean in spring-mvc.xml or something ? I am doing something similar to viewResolver but I have single controller that serves all pages so the plain view resolver is not very useful for me.

    Class PageMappingsBean {
    HashMap<String,PageMapping> pageMap = new HashMap<String,PageMapping>();
    //getter and setters
    }

    Class PageMapping {
    String TemplateName;
    String ContentName;
    bool isSecure;
    }
Working...
X