Class StrutsServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.apache.struts2.dispatcher.servlet.StrutsServlet
- All Implemented Interfaces:
- jakarta.servlet.Servlet,- jakarta.servlet.ServletConfig,- Serializable
public class StrutsServlet
extends jakarta.servlet.http.HttpServlet
Servlet dispatcher for Struts.  The preferred way to use Struts is as a filter via the
 
StrutsPrepareAndExecuteFilter and its variants.  This servlet dispatcher
 is only for those that really know what they are doing as it may not support every feature of Struts, particularly
 static resource serving.- See Also:
- 
Field SummaryFields inherited from class jakarta.servlet.http.HttpServletLEGACY_DO_HEAD
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class jakarta.servlet.http.HttpServletdoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceMethods inherited from class jakarta.servlet.GenericServletgetInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
- 
Constructor Details- 
StrutsServletpublic StrutsServlet()
 
- 
- 
Method Details- 
initpublic void init(jakarta.servlet.ServletConfig filterConfig) throws jakarta.servlet.ServletException - Specified by:
- initin interface- jakarta.servlet.Servlet
- Overrides:
- initin class- jakarta.servlet.http.HttpServlet
- Throws:
- jakarta.servlet.ServletException
 
- 
servicepublic void service(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException - Overrides:
- servicein class- jakarta.servlet.http.HttpServlet
- Throws:
- IOException
- jakarta.servlet.ServletException
 
- 
destroypublic void destroy()- Specified by:
- destroyin interface- jakarta.servlet.Servlet
- Overrides:
- destroyin class- jakarta.servlet.GenericServlet
 
 
-