I have this :
public class Base {
@GET
@Path("/news/{page_number}")
public Viewable news(@PathParam("page_number") int pageNumber) {
NewsParams news_params = new NewsParams();
news_params.setPageNumber(pageNumber);
return new Viewable("/news.jsp", news_params);
}
}
and the news.jsp is :
${it.pageNumber}
My question is : What to do (or which is the best way) if a have a lot of objects to transfer from jersey restful classes (which represent the application logic) to the JSP pages (which represent the application view) ?