Results 1 to 2 of 2

Thread: use FreeMarkerViewResolver and InternalResourceViewResolver

  1. #1
    Join Date
    Apr 2007
    Location
    Montreal, Canada
    Posts
    31

    Default use FreeMarkerViewResolver and InternalResourceViewResolver

    maybe I use FreeMarkerViewResolver and InternalResourceViewResolver(JSP) at the same time?
    I try to set different order, when order of FreeMarkerViewResolver is less than order of InternalResourceViewResolver, it always try to find *.ftl instead of *.jsp.

    Is there a way to put these view resolver in a chain?

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    No...Both are instances of a UrlBasedViewResolver. You will need a different view resolver for either your jsp's or your ftl's. I would checkout the ResourceBundleViewResolver.

    Also check my post answering the same question (but then for Velocity) here.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

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