*/
public void list(HttpServletRequest req, HttpServletResponse res)
throws ServletModuleException {
*/
public void list(HttpServletRequest req, HttpServletResponse res)
throws ServletModuleException {
theList = mainModule.getByWhereClause(null, offset);
//theList = mainModule.getByWhereClause((String)null, offset);
if (theList == null || theList.getCount() == 0 || theList.getCount() > 1) {
theList = mainModule.getByWhereClause(null, offset);
//theList = mainModule.getByWhereClause((String)null, offset);
if (theList == null || theList.getCount() == 0 || theList.getCount() > 1) {
// Hier code zum Loeschen
String confirmParam = req.getParameter("confirm");
String cancelParam = req.getParameter("cancel");
if (confirmParam == null && cancelParam == null) {
// HTML Ausgabe zum Confirmen!
SimpleHash mergeData = new SimpleHash();
// Hier code zum Loeschen
String confirmParam = req.getParameter("confirm");
String cancelParam = req.getParameter("cancel");
if (confirmParam == null && cancelParam == null) {
// HTML Ausgabe zum Confirmen!
SimpleHash mergeData = new SimpleHash();
- String moduleClassName = mainModule.getClass().getName();
- int i = moduleClassName.indexOf(".Module");
- String moduleName = moduleClassName.substring(i + 7);
+ String moduleName = getOperationModuleName();
mergeData.put("module", moduleName);
mergeData.put("infoString", moduleName + ": " + idParam);
mergeData.put("id", idParam);
mergeData.put("where", req.getParameter("where"));
mergeData.put("order", req.getParameter("order"));
mergeData.put("offset", req.getParameter("offset"));
mergeData.put("module", moduleName);
mergeData.put("infoString", moduleName + ": " + idParam);
mergeData.put("id", idParam);
mergeData.put("where", req.getParameter("where"));
mergeData.put("order", req.getParameter("order"));
mergeData.put("offset", req.getParameter("offset"));
+ // this stuff is to be compatible with the other more advanced
+ // search method used for media and comments
+ mergeData.put("query_media_folder", req.getParameter("query_media_folder"));
+ mergeData.put("query_is_published", req.getParameter("query_is_published"));
+ mergeData.put("query_text", req.getParameter("query_text"));
+ mergeData.put("query_field", req.getParameter("query_field"));
deliver(req, res, mergeData, templateConfirmString);
}
else {
deliver(req, res, mergeData, templateConfirmString);
}
else {