intellij opens servlet instead of html page in web preview with tomcat

Answered

I have a html page name index.html a servlet name ser.java and in web-inf i wrote


<servlet>
<display-name>d</display-name>
<servlet-name>regi</servlet-name>
<servlet-class>servlets.ser</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>regi</servlet-name>
<url-pattern>*.log</url-pattern>
</servlet-mapping>



When i click to view index.html in chrome it goes to index.log page and give me erorr404 when i delete servlet mapping every thing is good.
do you know how to solve this?

0
1 comment

Please post at http://stackoverflow.com/. This question is not specific to the IDE you are using.

0

Please sign in to leave a comment.