i'm new to jsp + spring and i have this problem: i have two @RequestMapping that respond to "onWork" and "onPending". Both return a list of activities and i would like to call them in the same page, for example:
<div id="onWork">
here i want to display onWork
</div>
<div id="onPending">
here i want to display onPending
</div>
I really like to modularize them and create two page: one that display onWork and another that display onPenging, so i could reuse that "fragment" every time i want, without duplicate the code.
How can i do that using jsp, jsp:invoke, jsp:fragment etc ?
Thanks