Hi.
I would like to get more information about the invoker servlet.
It is defined in conf/web.xml as follows:
<servlet>
<servlet-name>invoker</servlet-name>
<servlet-class>
org.apache.catalina.servlets.InvokerServlet
</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
I want to remove these lines, so that only sepecific servlets will be processed. I have made a list of these servlets in my own webapps/myapp/WEB-INF/web.xml.
it looks like:
<web-app>
<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>myapp.core.servlet.MyServlet</servlet-class>
<load-on-startup>5</load-on-startup>
</servlet>
...
</web-app>
Can I add a mapping of my own servlets into this file, and remove the conf/web.xml?
Is the invoker servlet can be removed as well (As I already mentioned, I want to forbid processing of servlets which are not included in my list).
Can you please show me how to do it(how to define a mapping to my servlets)?
Thanks
Keren.
I would like to get more information about the invoker servlet.
It is defined in conf/web.xml as follows:
<servlet>
<servlet-name>invoker</servlet-name>
<servlet-class>
org.apache.catalina.servlets.InvokerServlet
</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
I want to remove these lines, so that only sepecific servlets will be processed. I have made a list of these servlets in my own webapps/myapp/WEB-INF/web.xml.
it looks like:
<web-app>
<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>myapp.core.servlet.MyServlet</servlet-class>
<load-on-startup>5</load-on-startup>
</servlet>
...
</web-app>
Can I add a mapping of my own servlets into this file, and remove the conf/web.xml?
Is the invoker servlet can be removed as well (As I already mentioned, I want to forbid processing of servlets which are not included in my list).
Can you please show me how to do it(how to define a mapping to my servlets)?
Thanks
Keren.