From e40c1e6a5825466247cb5836fc0fa80a1a831008 Mon Sep 17 00:00:00 2001 From: "Eric J. Bowersox" Date: Wed, 7 Aug 2002 01:27:31 +0000 Subject: [PATCH] added permalink-generating code to topics.jsp and posts.jsp, and fixed a bug in StringUtil.splitList --- src/com/silverwrist/util/StringUtil.java | 3 +++ web/format/conf/posts.jsp | 32 ++++++++++++++++++++++++ web/format/conf/topics.jsp | 5 ++++ 3 files changed, 40 insertions(+) diff --git a/src/com/silverwrist/util/StringUtil.java b/src/com/silverwrist/util/StringUtil.java index 447c5d3..f217c1e 100644 --- a/src/com/silverwrist/util/StringUtil.java +++ b/src/com/silverwrist/util/StringUtil.java @@ -310,6 +310,9 @@ public class StringUtil } // end for + if (accumulate) + rc.add(buf.toString()); + if (rc.isEmpty()) return Collections.EMPTY_LIST; else diff --git a/web/format/conf/posts.jsp b/web/format/conf/posts.jsp index 4625e84..5bcac31 100644 --- a/web/format/conf/posts.jsp +++ b/web/format/conf/posts.jsp @@ -161,6 +161,19 @@ conf/posts.js.vs?<%= topic_locator %>&p1=<%= my_last + 1 %>&p2=<%= Math.min(my_l  ] + + + + <%= view.getPageQID() %> + [Permalink to this topic] + +    + + <%= view.getPageQID() %>.<%= my_first %>-<%= my_last %> + [Permalink to these posts] + + + <% out.flush(); response.flushBuffer(); %> @@ -199,6 +212,11 @@ conf/posts.js.vs?<%= topic_locator %>&p1=<%= my_last + 1 %>&p2=<%= Math.min(my_l <<%= view.getTopicStem() %><%= msg.getPostNumber() %>> +    + + <%= view.getPageQID() %>.<%= msg.getPostNumber() %> + [Permalink] + <% @@ -376,6 +394,19 @@ conf/posts.js.vs?<%= topic_locator %>&p1=<%= my_last + 1 %>&p2=<%= Math.min(my_l End Actual Messages + + +
+ + <%= view.getPageQID() %> + [Permalink to this topic] + +    + + <%= view.getPageQID() %>.<%= my_first %>-<%= my_last %> + [Permalink to these posts] + +
  @@ -466,3 +497,4 @@ conf/posts.js.vs?<%= topic_locator %>&p1=<%= my_last + 1 %>&p2=<%= Math.min(my_l %> <%= view.getBottomCustom() %> <% out.flush(); response.flushBuffer(); %> + diff --git a/web/format/conf/topics.jsp b/web/format/conf/topics.jsp index 25e4363..6fd73fb 100644 --- a/web/format/conf/topics.jsp +++ b/web/format/conf/topics.jsp @@ -83,6 +83,11 @@   +
+ + <%= view.getPageQID() %> + [Permalink to this conference] + <% out.flush(); response.flushBuffer(); %>