I have a problem with organizing my webapp HTML templates, which essentially are JSPs.
I want to have following structure:
index.jsp dynamically includes mobile or general layout jsp which itself should dynamically include the corresponding jsp from modules.
So, when the request like to /MyApp/showUsers.htm is being sent, I want my handler method to populate the model and return a String "users" to view resolver. The the view resolver should decide whether it's a mobile request or general and include index.jsp with params for layout and module (which was already set to "users").
The question is: How to correctly organize all that?