Announcement Announcement Module
No announcement yet.
JSP's only in the first level directory? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • JSP's only in the first level directory?

    I want to organize my JSP's located under /WEB-INF/jsp in subdirectories like



    I couldn't make this work with PropertiesMethodNameResolver, I don't want to use a resource bundle.

    If this is possible, it would be nice if one of the sample apps would define views this way, avoiding to have only the simplest examples.
    When it's not possbile, it should be added as a feature.

  • #2
    I think the PerpertiesMethodNameResolver isn't at all what you need.
    *MethodNameResolver are used in the case of multi action controllers where you map a request to a method name.
    In the case of views, you're using a ViewResolver.
    The most common, imho, is the InternalResourceViewResolver, supporting a prefix and suffix
    If you choose /WEB-INF/jsp/ as prefix and .jsp as suffix, a view name 'projects/home' should be rendered as if the /WEB-INF/jsp/projects/home.jsp were called.

    Does it sounds more like what you're looking for ?