When creating JSP pages, I really like one thing:
<jsp:include page="fancystoryrenderer.jsp" value="${aStoryObjectInMyModel}/>
...
fancystoryrenderer.jsp
<div id="fancymainbody">
...
${theStory.title}
...
</div>
The main important characteristics of this is that I can reuse the same component on the same JSP page in different places without copying the component insert and giving the history variables different names, noting that the story is called "TheStory" in JSP, and not "aStoryObjectInMyModel", the connection between our model was broken by the look, which is good in this case. In addition, I know that you can pass a parameter to a JSP representation, but I DO NOT WANT to capture attributes from the request object at all, I want to be able to use parameters from the expression language.
How do you do this?
Spring -MVC JSP, , , , , -, .