Hi,
we have <error-page> atribute in web.xml file in file i have set up
<error-page>
<error-code>404></error-code>
<location>/pagenot found.jsp</location>
</error-page>
it works fine for when i get 404 error it directs me to this jsp.but i have one problem in the web.xml i have mapping like this
<
servlet>
<servlet-name>action</servlet>
<servlet-class>org.apache.struts.ActionServlet</servlet-class>
<servlet>
<servlet-mapping>
<servlet-name>action</servlet>
<servlet-class>*.jhtml</servlet-class>
<servlet-mapping>
in my browser when i call /i.jhtml where the file i.jhtml is not actually present it should display page not found.jsp file instead of this it displays a blank page on the browser. how can i solve this problem.
i think it is able to find valid mapping in *.jhtml web.xml specified above because of this reason it is displaying blank page instead of pagenotfound.jsp but if say like i.jtml then it displays pagenotfound.jsp but i want this page to be displayed even when i call i.jhtml wher the file i.jhtml is not existing. can any body help me in solving this issue.
Thanks
[ March 02, 2008: Message edited by: raja ram ]