Im a newbie in Liferay development and I have a pretty simple question.
I have an example of portlet that shows a text message and I need to display in the Liferay Portal. How can I do this ? the JSP code is below:
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ page import="javax.portlet.PortletPreferences" %>
<portlet:defineObjects />
<%
PortletPreferences prefs = renderRequest.getPreferences();
String greeting = (String)prefs.getValue( "greeting", "Hello! Welcome to our portal.");
%>
<p><%= greeting %></p>