Теги:
"); printUserTags(sql, out, visitor); out.println(""); for (int i = 0; i < tags.size(); i++) { if (i > 0) { out.print(" "); } String taglink = ""; try { taglink = "" + Utils.encodeHTML(tags.get(i).Name) + ""; } catch (UnsupportedEncodingException e) { } int usagecnt = tags.get(i).UsageCnt; if (usagecnt <= max / 5 + min) { out.print("" + taglink + ""); } else if (usagecnt <= max / 5 * 2 + min) { out.print(taglink); } else if (usagecnt <= max / 5 * 3 + min) { out.print("" + taglink + ""); } else if (usagecnt <= max / 5 * 4 + min) { out.print("" + taglink + ""); } else { out.print("" + taglink + ""); } } out.println("
"); } public void doPostMessage(JdbcTemplate sql, HttpServletRequest request, HttpServletResponse response, Stream xmpp, com.juick.User visitor) throws ServletException, IOException { String body = request.getParameter("body"); if (body == null || body.length() < 1 || body.length() > 4096) { response.sendError(400); return; } body = body.replace("\r", ""); String tagsStr = request.getParameter("tags"); ListПоделитесь своим новым постом в социальных сетях:
"); if (CrosspostQueries.getTwitterTokens(sql, visitor.getUID()) == null) { out.println(""); } out.println(""); out.println(""); if (CrosspostQueries.getFacebookToken(sql, visitor.getUID()) == null) { out.println(""); } out.println(""); out.println("Ссылка на сообщение: http://juick.com/" + mid + "
"); out.println("