Results 1 to 2 of 2

Thread: JSP's only in the first level directory?

  1. #1
    Join Date
    Aug 2004
    Location
    Southern Germany
    Posts
    30

    Default JSP's only in the first level directory?

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

    /WEB-INF/jsp/projects/
    /WEB-INF/jsp/users/

    etc.

    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.
    Regards,
    Lars Fischer
    http://j2ux.blogspot.com

  2. #2
    Join Date
    Aug 2004
    Location
    Toulouse, France
    Posts
    148

    Default

    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 ?

    Olivier

Similar Threads

  1. Replies: 4
    Last Post: Jun 23rd, 2005, 12:24 PM
  2. Enabling Spring in ugly JSPs
    By jlindwall in forum Web
    Replies: 2
    Last Post: May 31st, 2005, 12:53 PM
  3. Replies: 4
    Last Post: Apr 6th, 2005, 12:07 PM
  4. Replies: 1
    Last Post: Mar 3rd, 2005, 09:02 AM
  5. Overzealous use of "info" log level
    By rbrewster in forum Architecture
    Replies: 2
    Last Post: Oct 26th, 2004, 01:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •