Can we add *.html files instead of *.jsp in Spring 4 with tiles 3?

116 Views Asked by At

I am trying to add *.html page in tiles definition, but it's displaying runtime exception, this page is static; but when i change extension from html to jsp, it works fine.

1

There are 1 best solutions below

0
KNV Srinivas On

add the following code

<servlet-mapping> <servlet-name>jsp</servlet-name> <url-pattern>*.html</url-pattern> </servlet-mapping> 

in web.xml