I have created a jsp page which run fine when executed in tomcat.But when i change the extension of my file to .html it show nothing. Is there any way where i can run .jsp with .html file extension
Jsp files are meant to serve dyanamic content. But you cant do that with html . Apart from that, It provides support for taglibs jstl , EL.
Copy your file to CATALINA_HOME/webapps/ROOT , e.g., c:/Tomcat8/webapps/ROOT . Start the Tomcat server. Start your browser if it is not already running. In the address area of the browser, type http://localhost:8080/DateJSP.jsp and submit that address to the browser.
JSP is a technology which is used to create dynamic web applications. HTML is a standard markup language which is used to create the structure of web pages. JSP allow to place the custom tag or third party tag. It does not allow to place the custom tag or third party tag.
add
<servlet-mapping> <servlet-name>jsp</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
in web.xml
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With