As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
if(userid.containsProject("xyz")) { response.sendRedirect(request.getContextPath() + "/page/site/xyz"); } else { response.sendRedirect(request.getContextPath() + "/page/user/" + URLEncoder.encode(userid) + "/dashboard"); }
public boolean isMember(java.lang.String authorityName) Indicates whether a user is a member of the site. Parameters: authorityName - user name Returns: boolean true if the user is a member of the site, false otherwise
String siteName = "xyz"; if (siteName.isMember(URLEncoder.encode(userid))) response.sendRedirect(request.getContextPath() + "/page/site/xyz/dashboard"); else response.sendRedirect(request.getContextPath() + "/page/user/" + URLEncoder.encode(userid) + "/dashboard");
A problem has occurred.This page could not be rendered:site-indexPlease notify your system administrator.
An error occurred at line: 35 in the jsp file: /site-index.jspThe method isMember(String) is undefined for the type String34: String siteName = "gon";35: if (siteName.isMember(URLEncoder.encode(userid)))36: response.sendRedirect(request.getContextPath() + "/page/site/gon/dashboard");37: else38: response.sendRedirect(request.getContextPath() + "/page/user/" + URLEncoder.encode(userid) + "/dashboard");