public void init(ServletConfig conf) throws ServletException
	{
		super.init(conf);
		if(mapper == null)
		{
				throw new ServletException("Cannot find request mapper. Add request mapper to your assembly and set it on DispatcherServlet");
		}
		dispatchMode = Arrays.asList(DISPATCH_MODE_STR).indexOf(conf.getInitParameter("dispatch_mode"));
		if(dispatchMode == -1) dispatchMode = INCLUDE;
	//	delegateRequestResponse = Boolean.valueOf(conf.getInitParameter("forward_http_params"));
		strict = Boolean.valueOf(getInitParameter("strict"));
		System.out.println(new LogEntry("DispatcherServlet checks " + (strict ? "strictly" : "lenient") + " on availability of resources"));
		docRoot = conf.getServletContext().getRealPath("/");



		//TODO mapper may not have been started yet
		loadSucceeded = mapper.isLoaded();
        //TODO response type
		sanityCheckPassed = sanityCheckPassed = mapper.checkSanity(this);
		messages.addAll(mapper.getMessages());
		System.out.println(new LogEntry("mapping loaded with following messages", CollectionSupport.format(messages, "\n")));
	}
public void init ( ServletConfig conf ) throws ServletException { super . init ( conf ) ; if ( mapper == null ) { throw new ServletException ( "Cannot find request mapper. Add request mapper to your assembly and set it on DispatcherServlet" ) ; } dispatchMode = Arrays . asList ( DISPATCH_MODE_STR ) . indexOf ( conf . getInitParameter ( "dispatch_mode" ) ) ; if ( dispatchMode == - 1 ) dispatchMode = INCLUDE ; strict = Boolean . valueOf ( getInitParameter ( "strict" ) ) ; System . out . println ( new LogEntry ( "DispatcherServlet checks " + ( strict ? "strictly" : "lenient" ) + " on availability of resources" ) ) ; docRoot = conf . getServletContext ( ) . getRealPath ( "/" ) ; loadSucceeded = mapper . isLoaded ( ) ; sanityCheckPassed = sanityCheckPassed = mapper . checkSanity ( this ) ; messages . addAll ( mapper . getMessages ( ) ) ; System . out . println ( new LogEntry ( "mapping loaded with following messages" , CollectionSupport . format ( messages , "\n" ) ) ) ; }
@param conf
@throws ServletException