Skip to content
Snippets Groups Projects
Commit ab0dbd0f authored by Emilio Dolce's avatar Emilio Dolce
Browse files

Get form from the session when controller method does not have form

parameter definition
parent afa0d154
Branches
Tags
No related merge requests found
......@@ -304,6 +304,17 @@ public class SpringMvcUtil {
}
}
}
return getFormFromSession();
}
public static JfFormBean getFormFromSession() {
String formName = (String)getSession().getAttribute("formId");
if (formName != null) {
JfFormBean form = (JfFormBean)getSession().getAttribute(formName);
if (form != null) {
return form;
}
}
return null;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment