Search Results

Search found 2 results on 1 pages for 'danimajo'.

Page 1/1 | 1 

  • Item value in JSTL foreach loop not working in Portlet

    - by danimajo
    Given the following Portlet Code: ArrayList nameList = new ArrayList(); nameList.add("Willi Willisch"); nameList.add("Seppi Seppisch"); renderRequest.setAttribute("names", nameList); And the following JSP Code: <c:forEach var="aName" items="${names}"> <tr> <td>${aName} </td> </tr> </c:forEach> Prints out: ${aName} ${aName} I don't have any clue why a $(aName) isn't evaluated. The forEach loops works, because ${aName} is printed out twice ....

    Read the article

  • How can I get the client IP in a JSR168 Portlet?

    - by danimajo
    How can I get the IP of the Client (request) in a JSR168 Portlet? I'm on Liferay 5.2.3 I can get the IP with Liferay internal functionality: String ip = com.liferay.portal.util.PortalUtil.getHttpServletRequest(renderRequest).getRemoteAddr(); Is there any portal neutral way to do this?

    Read the article

1