–is their any alternative in spring MVC for Partial views as we use in ASP.NET MVC 3 Razor engine?
–is their any alternative in spring MVC for Sections as we use in ASP.NET MVC 3 Razor engine?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I develop in both: MVC.net and Spring MVC. I really like partial views in mvc.net but I don’t think there is an out-of-the-box equivalent in Spring. However, I’ve done this with regular ajax calls using jQuery:
Alternatively, I’ve seen Spring examples where the view checks a model property that indicates whether the request is an Ajax call and if that’s the case it will skip html, body, etc tags.
As far as sections, the closest thing I can think of is Apache Tiles:
http://tiles.apache.org/