updates to support including mapping when database isn't new
This commit is contained in:
parent
27e3a840eb
commit
84f3cb93ac
1 changed files with 9 additions and 1 deletions
|
@ -246,11 +246,19 @@ public static Log log = LogFactory.getLog("edu.cornell.mannlib.vitro.webapp.jsp.
|
||||||
|
|
||||||
String oldEdit = request.getParameter("oldEdit");
|
String oldEdit = request.getParameter("oldEdit");
|
||||||
if( oldEdit == null){
|
if( oldEdit == null){
|
||||||
|
//First check to see if the form is actually a jsp
|
||||||
|
//IF so use the custom form mapping
|
||||||
|
if(form.endsWith(".jsp")) {
|
||||||
|
//Get the java mapping
|
||||||
|
if(JspToGeneratorMapping.jspsToGenerators.containsKey(form)) {
|
||||||
|
form = JspToGeneratorMapping.jspsToGenerators.get(form);
|
||||||
|
}
|
||||||
|
}
|
||||||
String queryString = request.getQueryString();
|
String queryString = request.getQueryString();
|
||||||
response.sendRedirect(
|
response.sendRedirect(
|
||||||
request.getContextPath() +
|
request.getContextPath() +
|
||||||
"/editRequestDispatch?" +
|
"/editRequestDispatch?" +
|
||||||
queryString);
|
queryString + "&editForm=" + form);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
//For testing the jsp when test parameter has value,
|
//For testing the jsp when test parameter has value,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue