\n");
out.write("Post subject: ");
out.write(" \n");
- out.write("Post tags: ");
- out.write(" \n");
- out.write("Include public names? ");
- out.write(" \n");
+ + "\" value=\"" + HTMLRenderer.sanitizeTagParam(subject) + "\" /> \n");
out.write("Post content (in raw SML, no headers): \n");
out.write(" \n");
out.write("SML post headers: \n");
out.write(" \n");
-
- String parentURI = req.getParameter(PARAM_PARENT);
if ( (parentURI != null) && (parentURI.trim().length() > 0) )
out.write("\n");
- out.write(" Tags: \n");
+ out.write(" Tags: \n");
boolean inNewThread = getInNewThread(req);
boolean refuseReplies = getRefuseReplies(req);
- out.write(" in a new thread? \n");
- out.write(" refuse replies? \n");
+ out.write("In a new thread? \n");
+ out.write("Refuse replies? \n");
+
+ out.write("Include public names? ");
+ out.write(" \n");
out.write(ATTACHMENT_FIELDS);
@@ -249,9 +251,68 @@ public class PostServlet extends BaseServlet {
out.write("\n");
}
+ private void displayEditForm(User user, MultiPartRequest req, PostBean post, PrintWriter out) throws IOException {
+ String parentURI = req.getString(PARAM_PARENT);
+
+ String subject = getParam(req, PARAM_SUBJECT);
+
+ out.write(" \n");
+ out.write(" |