Is there a better solution then this inside a JSP?
Hello!We maintain a pretty big system that "out of the box" come with many jsp-pages.
Often we need to go in and modify them.
My last task is to do a filtering on a Map before it gets printed out.
Origianlly it looks like:
<%
Some code
Map map = fillFromDatabase();
%>
html bla bla html
<%
Some code that render the Map
%>
We wouldlike to minimize new code in these jsp-pages.
A easy solution for me is just to create a class and add a row like below:
<%
Some code
Map map = fillFromDatabase();
map = com.a.FilterManager.filter(map);
%>
html bla bla html
<%
Some code that render the Map
%>
But is there a better way to do modifications to a jsp-page then the example above.
Best regards
Fredrik
