maven-archetypes/mvcbean-jsp-portlet-archetype/src/main/resources/archetype-resources/src/main/java/__packageInPathFormat__/controller/UserActionController.java [52:75]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	public String submitForm(ActionRequest actionRequest, ActionResponse actionResponse) {

		models.put("user", user);

		Set<ParamError> bindingErrors = bindingResult.getAllErrors();

		if (bindingErrors.isEmpty()) {

			if (logger.isDebugEnabled()) {
				logger.debug("[ACTION_PHASE] firstName=" + user.getFirstName());
				logger.debug("[ACTION_PHASE] lastName=" + user.getLastName());
			}

			DateFormat dateFormat = new SimpleDateFormat("EEEE, MMMM d, yyyy G");

			Calendar todayCalendar = Calendar.getInstance();

			models.put("todaysDate", dateFormat.format(todayCalendar.getTime()));

			return "redirect:greeting.jspx";
		}

		return null;
	}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



maven-archetypes/mvcbean-thymeleaf-portlet-archetype/src/main/resources/archetype-resources/src/main/java/__packageInPathFormat__/controller/UserActionController.java [51:74]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	public String submitForm(ActionRequest actionRequest, ActionResponse actionResponse) {

		models.put("user", user);

		Set<ParamError> bindingErrors = bindingResult.getAllErrors();

		if (bindingErrors.isEmpty()) {

			if (logger.isDebugEnabled()) {
				logger.debug("[ACTION_PHASE] firstName=" + user.getFirstName());
				logger.debug("[ACTION_PHASE] lastName=" + user.getLastName());
			}

			DateFormat dateFormat = new SimpleDateFormat("EEEE, MMMM d, yyyy G");

			Calendar todayCalendar = Calendar.getInstance();

			models.put("todaysDate", dateFormat.format(todayCalendar.getTime()));

			return "redirect:greeting.html";
		}

		return null;
	}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



