NdsBeisUi/src/main/java/com/northgateps/nds/beis/ui/controller/BeisController.java
/**
     * Handle the form response from the used-service-before page and redirect to the dashboard
     * This allows us to do a redirect to dashboard which triggers the redirect to CAS
     */
Handle the form response from the used-service-before page and redirect to the dashboard
This allows us to do a redirect to dashboard which triggers the redirect to CAS
Handle the form response from the used - service - before page and redirect to the dashboard This allows us to do a redirect to dashboard which triggers the redirect to CAS
@RequestMapping(value = { "/used-service-handler" })
    public Object handleUsedServiceBeforeRequest(final @ModelAttribute("command") BeisAllModel model, final BindingResult bindingResult,
            HttpServletResponse response) throws ServletException, IOException {
    	UiData data = null;
		if( model != null ){
			data = (UiData)model.getUiData();		
			if( data != null &&
				data.getUsedServiceBefore() != null &&
				data.getUsedServiceBefore() )
			{
				response.sendRedirect("personalised-dashboard?tenant=" + model.getTenant());
				return null;
			}
		}
		return handleRequest(model, bindingResult, null, response);		
    }
@ RequestMapping ( value = { "/used-service-handler" } ) public Object handleUsedServiceBeforeRequest ( final @ ModelAttribute ( "command" ) BeisAllModel model , final BindingResult bindingResult , HttpServletResponse response ) throws ServletException , IOException { UiData data = null ; if ( model != null ) { data = ( UiData ) model . getUiData ( ) ; if ( data != null && data . getUsedServiceBefore ( ) != null && data . getUsedServiceBefore ( ) ) { response . sendRedirect ( "personalised-dashboard?tenant=" + model . getTenant ( ) ) ; return null ; } } return handleRequest ( model , bindingResult , null , response ) ; }
Handle the form response from the used-service-before page and redirect to the dashboard
 This allows us to do a redirect to dashboard which triggers the redirect to CAS
Handle the form response from the used - service - before page and redirect to the dashboard This allows us to do a redirect to dashboard which triggers the redirect to CAS
//redirect to the dashboard via the logon page //use the sitemap for progress