java - using servlets in a struts 2 project -
i building application using struts2. web.xml file looks below
<filter> <filter-name>struts2</filter-name> <filter-class> org.apache.struts2.dispatcher.ng.filter.strutsprepareandexecutefilter </filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
the application runs fine. have jsp needs input servlet, wrote servlet , added servlet-mapping in web.xml, server cannot find servlet because of filter-mapping. how use servlets in struts 2 , should web.xml like?
from: http://struts-2.464677.n5.nabble.com/using-servlets-in-a-struts-2-project-td465399.html
resolved !, filter mapping everthing struts2 besides 1 servlet? , http://struts.apache.org/2.2.1/docs/webxml.html
Comments
Post a Comment