updates for replacing editRequestDispatch.jsp with editRequestDispatch
This commit is contained in:
parent
a990f44ffc
commit
697312b608
6 changed files with 16 additions and 7 deletions
|
@ -93,7 +93,7 @@ public class BaseSiteAdminController extends FreemarkerHttpServlet {
|
|||
|
||||
if (PolicyHelper.isAuthorizedForActions(vreq, new EditIndividuals())) {
|
||||
|
||||
map.put("formAction", UrlBuilder.getUrl("/edit/editRequestDispatch.jsp"));
|
||||
map.put("formAction", UrlBuilder.getUrl("/editRequestDispatch.jsp"));
|
||||
|
||||
WebappDaoFactory wadf = vreq.getFullWebappDaoFactory();
|
||||
|
||||
|
|
|
@ -435,6 +435,15 @@ public class EditConfigurationTemplateModel extends BaseTemplateModel {
|
|||
return statementDisplay;
|
||||
}
|
||||
|
||||
//Used for deletion in case there's a specific template to be employed
|
||||
public String getDeleteTemplate() {
|
||||
String templateName = vreq.getParameter("templateName");
|
||||
if(templateName == null || templateName.isEmpty()) {
|
||||
templateName = "propStatement-default.ftl";
|
||||
}
|
||||
return templateName;
|
||||
}
|
||||
|
||||
//Retrieves data propkey from parameter and gets appropriate data value
|
||||
private String getDataLiteralValuesFromParameter() {
|
||||
String dataValue = null;
|
||||
|
|
|
@ -23,7 +23,7 @@ public class ObjectPropertyStatementTemplateModel extends PropertyStatementTempl
|
|||
|
||||
private static final Log log = LogFactory.getLog(ObjectPropertyStatementTemplateModel.class);
|
||||
|
||||
private static final String EDIT_PATH = "edit/editRequestDispatch.jsp";
|
||||
private static final String EDIT_PATH = "editRequestDispatch";
|
||||
|
||||
private final Map<String, String> data;
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ public abstract class ObjectPropertyTemplateModel extends PropertyTemplateModel
|
|||
|
||||
private static final Log log = LogFactory.getLog(ObjectPropertyTemplateModel.class);
|
||||
private static final String TYPE = "object";
|
||||
private static final String EDIT_PATH = "edit/editRequestDispatch.jsp";
|
||||
private static final String EDIT_PATH = "editRequestDispatch";
|
||||
private static final String IMAGE_UPLOAD_PATH = "/uploadImages";
|
||||
|
||||
private static final String END_DATE_TIME_VARIABLE = "dateTimeEnd";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue