public class StylesEditorAction extends ConfigAction {
public ActionForward execute(ActionMapping mapping, ActionForm form,
UserContainer user, HttpServletRequest request,
HttpServletResponse response) throws IOException, ServletException {
DataConfig config = (DataConfig) getDataConfig();
StylesEditorForm stylesForm = (StylesEditorForm) form;
FormFile file = stylesForm.getSldFile();
final String filename = file.getFileName();
final String styleID = stylesForm.getStyleID();
StyleConfig style = user.getStyle();
boolean doFullValidation = stylesForm.getFullyValidate();
if (stylesForm.getFullyValidateChecked() == false) {
doFullValidation = false;
}
if (doFullValidation)
{