Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/prb112/SocialSDK
Browse files Browse the repository at this point in the history
  • Loading branch information
prb112 committed May 6, 2015
2 parents 1dd500a + 1a9b207 commit 04b98bf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
5 changes: 5 additions & 0 deletions samples/j2ee/templates/sso.sample.webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,10 @@
<artifactId>com.ibm.sbt.core</artifactId>
<version>1.1.4.20150504-1700</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<%@page import="java.util.Arrays"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.HashMap"%>
<%@page import="com.ibm.sbt.services.client.connections.communities.Community"%>
<%@page import="com.ibm.sbt.services.client.connections.communities.CommunityList"%>
<%@page import="com.ibm.sbt.services.client.connections.communities.*"%>
<%@page import="com.ibm.sbt.services.client.base.datahandlers.EntityList" %>
<%@page import="com.ibm.sbt.services.client.connections.communities.CommunityService"%>
<html>
<head>
Expand All @@ -17,12 +17,9 @@
CommunityService svc = new CommunityService();
Map<String, String> parameters = new HashMap<String, String>();
parameters.put("ps", "5");
CommunityList communities = svc.getMyCommunities(parameters);
out.println("<br>Listing my communities , Total communities found : "+communities.getTotalResults());
out.println("<br>");
for (Community community : communities) {
out.println("<b>Name : </b> " + community.getTitle());
out.println("<br>");
EntityList<Community> communities = svc.getMyCommunities();
for(Community comm : communities){
out.println("Title: " + comm.getTitle() + "<br/>");
}
} catch (Throwable e) {
out.println("<pre>");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<%@page import="com.ibm.sbt.services.client.connections.files.FileService"%>
<%@page import="com.ibm.sbt.services.client.connections.files.Comment"%>
<%@page import="com.ibm.sbt.services.client.connections.files.File"%>
<%@page import="com.ibm.sbt.services.client.connections.files.FileList"%>

<%@page import="java.nio.charset.Charset"%>
<%@page import="java.io.ByteArrayInputStream"%>
<%@page import="java.io.PrintWriter"%>
Expand Down

0 comments on commit 04b98bf

Please sign in to comment.