Теги:
"); printUserTags(sql, out, visitor); out.println(""); for (int i = 0; i < tags.size(); i++) { if (i > 0) { out.print(" "); } String taglink = ""; try { taglink = "" + StringEscapeUtils.escapeHtml4(tags.get(i).getTag().getName()) + ""; } catch (UnsupportedEncodingException e) { } int usagecnt = tags.get(i).getUsageCount(); 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, XmppSession xmpp, com.juick.User visitor) throws ServletException, IOException { String body = request.getParameter("body"); if (body == null || body.length() < 1 || body.length() > 4096) { response.sendError(HttpServletResponse.SC_BAD_REQUEST); return; } body = body.replace("\r", ""); String tagsStr = request.getParameter("tags"); ListПоделитесь своим новым постом в социальных сетях:
"); if (CrosspostQueries.getTwitterTokens(sql, visitor.getUid()).isPresent()) { out.println(" "); } out.println(" "); out.println(" "); if (CrosspostQueries.getFacebookToken(sql, visitor.getUid()).isPresent()) { out.println(" "); } out.println(" "); out.println("Ссылка на сообщение: http://juick.com/" + mid + "
"); out.println("