Does anyone know how to detect if a command object has been stored in the session? I'm using an AbstractFormWizardController and in my formBackingObject method I need to detect if there is a command object associated with the session.
My Code is;
Code:protected Object formBackingObject(HttpServletRequest request) throws Exception { int page = request.getParameterMap().containsKey("page") ? ServletRequestUtils.getIntParameter(request, "page") : -1; Object command = null; if (page >= 0 && page <= (getPageCount() - 1)) { command = getCommand(request); } else { // create a new command object } return registration; }


Reply With Quote