18 package org.turro.elephant.impl.feedback;
21 import java.util.Date;
22 import org.turro.action.MailSenders;
23 import org.turro.string.ObjectString;
24 import org.turro.string.Strings;
25 import org.turro.elephant.context.ElephantContext;
26 import org.turro.elephant.context.IAction;
27 import org.turro.elephant.impl.abstracts.AbstractAction;
28 import org.turro.elephant.impl.util.FileUtil;
29 import org.turro.elephant.impl.util.StringParser;
48 if(
"post".equals(action)) {
49 if(!Strings.isBlank(comment)) {
50 String feedback = ctx +
"|" + fbquery +
"|" + comment +
"|" +
55 "/WEB-INF/elephant/feedback/data/" +
56 ObjectString.formatObject(
new Date(),
"yyyyMMdd",
false) +
63 "Context: " + ctx +
"\n" +
64 "Opinion:" + fbquery +
"\n" +
65 "Comment:" +
"\n" + comment +
"\n\n" +
static IMailSender getPool()
static String getRealPath(String path)
static String getSiteName()
String getActionParameter()
static void appendContent(File file, String value)
static String toHTML(String value)
String getParameter(String param)
HttpServletRequest getRequest()