You're mixing JSP scriptlets in Java code and the " after href= is closing the string too early. This is incorrect. The basic fix would be:
table += "<tr><td><a href=\"person.jsp?id=" + id + "&ssid=" + ssid + "\">Link</a></td></tr>";
Note that you would also like to URLEncode those parameters to prevent that you end up with a malformed URL.
Better would be to stop using Java code and JSP scriptlets for presentation. You could use JSTL <c:url> and <c:param> to create links with URL-encoded parameters.