How to integrate Spring framework with Crystal reports

here is my problem: I have spring framework and I want to integrate Crystal report

there is a problem when Report calls the CrystalReportViewerServlet servlet, the spring dispatcher does not find it the way I can do the spring dispatcher to call the default servlet declared on my Web.xml

here is my web.xml

<servlet> <servlet-name>CrystalReportViewerServlet</servlet-name> <servlet- class>com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>CrystalReportViewerServlet</servlet-name> <url-pattern>/CrystalReportViewerHandler</url-pattern> </servlet-mapping> <context-param> <param-name>crystal_image_uri</param-name> <param-value>/gaa.vargas.furniture/crystalreportviewers</param-value> </context-param> <context-param> <param-name>crystal_image_use_relative</param-name> <param-value>webapp</param-value> </context-param> <context-param> <param-name>contextConfigLocation</param-name> <param-value> /WEB-INF/applicationContext.xml </param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <servlet> <servlet-name>dispatcher</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>dispatcher</servlet-name> <url-pattern>*.htm</url-pattern> </servlet-mapping> <session-config> <session-timeout>30</session-timeout> </session-config> <welcome-file-list> <welcome-file>redirect.jsp</welcome-file> </welcome-file-list> 
+4
source share

Source: https://habr.com/ru/post/1336592/


All Articles