Spring 3 - Theme with separate JSP
Posted
by Max
on Stack Overflow
See other posts from Stack Overflow
or by Max
Published on 2010-06-11T11:48:31Z
Indexed on
2010/06/11
11:53 UTC
Read the original article
Hit count: 232
Hi,
I'm trying to rewrite some Spring 1.2 code to Spring 3.0 one. Currently I'm stuck with JSP resolved by URL problem. Application uses separate JSP files with different layouts for serving the same model from the same controller. The JSP is switched using interceptor, that intercepts the url and changes the view.
For example:
/design_one/mypage.htm -> MyPageController -> /design_one/mypage.jsp
/design_two/mypage.htm -> MyPageController -> /design_two/mypage.jsp
Is there a way to make same or similar functionality using something better than raw interceptors?
© Stack Overflow or respective owner