I have on jsp page, which include dynamically other pages with <jsp:include page="<%=jspFile%>" flush="true"/>. The files, which should be included contains all the same function show(), how can I override the methods dynamically?
I need it becuase first I include the jsp, which contains some important checks and after it I want to use the function show, to get the content.
Thanks for any advices.
I had it resolved with a Servlet, which takes the role of the controller and use the jsp only as view.