Creating liferay portlet - how to pass data to view.jsp from Java class?
问题 I'm trying to create portlet in liferay with just only from a JSP file called view.jsp . What I need is: When the portlet loads, I want to call custom Java class where I generate an array. I need to pass that array to the view.jsp . How to do that? 回答1: Have you created your portlet with the create.sh script from Liferay? In this case, we will need to create a new portlet class that extends MVCPortlet : public class ArrayPortlet extends MVCPortlet { } Also, you will have to change the WEB-INF