-
Jan 8th, 2013, 11:47 AM
#1
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
-
Jan 9th, 2013, 01:51 AM
#2
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.
-
Jan 9th, 2013, 10:41 PM
#3
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
-
Forum Rules