Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: which jsonws api to get all users list by group Id and company Id
Hi ,
which jsonws api to get all users list by group Id and company Id or I want to display users list on portlet jsp page ,
i am using liferay 7.1
i did code
it is not working
please help out me
Thank you
Ram
which jsonws api to get all users list by group Id and company Id or I want to display users list on portlet jsp page ,
i am using liferay 7.1
i did code
[code]<%@page import="java.util.ArrayList"%>
<%@page import="javax.portlet.RenderRequest"%>
<%@page import="com.liferay.portal.model.User"%>
<%@page import="javax.portlet.PortletSession"%>
<%
RenderRequest renderRequest =
(RenderRequest) request.getAttribute("javax.portlet.request");
PortletSession session = renderRequest.getPortletSession();
List<user> users = (List<user>) session.getAttribute("users");
if(users != null){
for(User user : users){
%>
<b>Name: </b><%=user.getLastName() + ", " + user.getFirstName() %><br>
<%}
}%> </user></user>
it is not working
please help out me
Thank you
Ram
You can see a list of jsonws api's at http://localhost/api/jsonws
Is this jsp in a Liferay module? I think you may want to do a local call instead to UserLocalServiceUtil?
Is this jsp in a Liferay module? I think you may want to do a local call instead to UserLocalServiceUtil?
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™