[JIRA-81] Web UI Pagination

add pagination to in memory files' view in web UI, only show 20 files a page. 

without pagination, when there are too many files in memory, it will take a long time to render the 'in memory files' page.
the java codes in this JSP are only to:
1. get request attributes
2. use these attributes in some condition expressions to dynamically construct html fields

I’m not familiar with JSP and servlet techs, I merely see JSP as a template engine, I think the codes didn’t mix MVC logic since all logic here is to dynamically decide which view should be shown.


在 2014年8月26日 上午12:59:07, Henry Saputra (notifications@github.com) 写到:

In core/src/main/webapp/memory.jsp:

> @@ -51,6 +51,45 @@
>              <% } %>
>            </tbody>
>          </table>
> +
> +        <% int lastPageNum = ((Integer)request.getAttribute("lastPageNum")).intValue(); %>
Having Java code in JSP (scriplets) is highly discouraged because it mix MVC logic and will make it harder to debug and dev later on.

Could you try to move the server logic to Java bean with request context?

—
Reply to this email directly or view it on GitHub.