spring-framework / org.springframework.web.servlet.view / InternalResourceView / setAlwaysInclude

setAlwaysInclude

open fun setAlwaysInclude(alwaysInclude: Boolean): Unit

Specify whether to always include the view rather than forward to it.

Default is "false". Switch this flag on to enforce the use of a Servlet include, even if a forward would be possible.

See Also
javax.servlet.RequestDispatcher#forwardjavax.servlet.RequestDispatcher#include#useInclude(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)