spring mvc - Dynamically put JSP tag on a JSP page -


i’m doing first steps in spring mvc , jsp , i’m trying figure out what’s best way following:

i need create dynamic page made static html , dynamic widgets appear on page per business logic. each widget div content: 1 widget might show trend while other widget might show table, etc. need decide on run time widget put on specific position in page , place there. in other words, need dynamically replace place holder in jsp file jsp tag file or else provide widget html. can wrapping each placeholder if or switch statements want know if there cleaner way that.

thanks, yosi

if want see included when, right away in code, ide code navigation support, list of <c:when> way go.

dynamic includes (e.g. <jsp:include page="${widgetname}" />) make code shorter sure, less easy understand what's going on.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -