@@ -174,8 +174,8 @@
<% if(media.type.matches("image/.*"))
{ %>
- /postmedia/<%=
+ post.urlfragment %>/<%=
media.urlfragment %>"
alt="Media Preview" />
<% }
@@ -285,9 +285,9 @@
<% } // if edit %>
-
+
+
<%@ include file="/WEB-INF/footer.jsp" %>
diff --git a/src/main/webapp/manage/edittags.jsp b/src/main/webapp/manage/edittags.jsp
index 704312f..d095e6c 100644
--- a/src/main/webapp/manage/edittags.jsp
+++ b/src/main/webapp/manage/edittags.jsp
@@ -16,7 +16,7 @@
limitations under the License.
--%>
-
+
<%@ include file="/WEB-INF/meta.jsp" %>
<%@ page import="kim.redbow.web.blog.queries.Tag,
@@ -69,9 +69,9 @@
<%@ include file="/WEB-INF/header.jsp" %>
-
+
+
Edit Tags
@@ -174,9 +174,9 @@
New Tag
-
+
+
<%@ include file="/WEB-INF/footer.jsp" %>
diff --git a/src/main/webapp/manage/listauthors.jsp b/src/main/webapp/manage/listauthors.jsp
index 67ef4db..33f4672 100644
--- a/src/main/webapp/manage/listauthors.jsp
+++ b/src/main/webapp/manage/listauthors.jsp
@@ -16,7 +16,7 @@
limitations under the License.
--%>
-
+
<%@ include file="/WEB-INF/meta.jsp" %>
<%-- Insert query/setup stuff here. --%>
@@ -37,9 +37,9 @@
<%@ include file="/WEB-INF/header.jsp" %>
-
+
+
Authors
@@ -66,9 +66,9 @@
<% } %>
-
+
+
<%@ include file="/WEB-INF/footer.jsp" %>
diff --git a/src/main/webapp/manage/listposts.jsp b/src/main/webapp/manage/listposts.jsp
index 38d8d70..9012b4b 100644
--- a/src/main/webapp/manage/listposts.jsp
+++ b/src/main/webapp/manage/listposts.jsp
@@ -16,7 +16,7 @@
limitations under the License.
--%>
-
+
<%@ include file="/WEB-INF/meta.jsp" %>
@@ -41,9 +41,9 @@
<%@ include file="/WEB-INF/header.jsp" %>
-
+
+
List Posts
@@ -77,9 +77,9 @@
<% } %>
-
+
+
<%@ include file="/WEB-INF/footer.jsp" %>
diff --git a/src/main/webapp/post.jsp b/src/main/webapp/post.jsp
index 121bc74..657fbac 100644
--- a/src/main/webapp/post.jsp
+++ b/src/main/webapp/post.jsp
@@ -16,7 +16,7 @@
limitations under the License.
--%>
-
+
<%@ include file="/WEB-INF/meta.jsp" %>
@@ -28,17 +28,7 @@
java.util.Date,
java.util.ArrayList" %>
<%
- Post post = null;
- try
- {
- post = Post.byUrl(conn, request.getParameter("page"));
- }
- catch(SQLException ex)
- {
- conn.close();
- response.sendError(404);
- return;
- }
+ Post post = Post.byUrl(conn, request.getParameter("page"));
if(post.draft)
{
@@ -71,21 +61,21 @@
<%@ include file="/WEB-INF/header.jsp" %>
-
+
+
<%@ include file="/WEB-INF/post/long.jsp" %>
-
-
+
<%@ include file="/WEB-INF/footer.jsp" %>
diff --git a/src/main/webapp/tag.jsp b/src/main/webapp/tag.jsp
index affc629..50d7619 100644
--- a/src/main/webapp/tag.jsp
+++ b/src/main/webapp/tag.jsp
@@ -16,7 +16,7 @@
limitations under the License.
--%>
-
+
<%@ include file="/WEB-INF/meta.jsp" %>
<%@ page import="kim.redbow.web.blog.queries.Post,
@@ -62,10 +62,10 @@
<%@ include file="/WEB-INF/header.jsp" %>
-
+
+
<% for(int i = 0; i < posts.size(); i++)
{
@@ -75,7 +75,7 @@
<%= pager.toString() %>
-
+
+
<%@ include file="/WEB-INF/footer.jsp" %>
|