Results 1 to 3 of 3

Thread: Spring 3 MVC Multiple view resolvers(Jsp and Velocity)

  1. #1
    Join Date
    Jan 2013
    Posts
    2

    Default Spring 3 MVC Multiple view resolvers(Jsp and Velocity)

    HI,
    I posted this query the other day in http://stackoverflow.com
    [http://stackoverflow.com/questions/1...-and-velocity], but wasn't able to get answer, so now I'm asking here the same query again.

    Use Case/requirement:
    Because of some business/technical constraints we should use spring3 MVC multiple view resolvers(JSP and Velocity). I tried to search on net on this but i couldn't find perfect solution. May be someone else had experienced the same scenario. So Could you please let me know how can i use both JSP and Velocity as view resolvers in the SPring3 MVC application.Any working example/tutorial link is highly appreciated.

    Note: We should use both JSp and Velocity only not any other view resolvers

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

    Default

    Yes y ou can and have you actually tried it?! Also I suggest a readup on views and viewresolvers... Simply make sure the jsp one is the last viewresolver consulted, simply configure the order attribute.
    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

  3. #3
    Join Date
    Jan 2013
    Posts
    2

    Default

    Hi Marten, Thank you for your prompt reply. Let me give it a try.
    Some one once mentioned in other blogs, we can't use JSP and Velocity as multiple view resolvers(i meant this Velocity and JSP combination doesn't work). So I just need experts advice before going ahead with this approach. Once again thank you so much for your time to look into this. I really appreciate.

Tags for this Thread

Posting Permissions

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