Hai all,
Iam working on struts application .In my application i need to display one jsp
for web errors in tomcat like 400,424 404 like errors . plz help me in this.
Thanks
Printable View
Hai all,
Iam working on struts application .In my application i need to display one jsp
for web errors in tomcat like 400,424 404 like errors . plz help me in this.
Thanks
You can do this in web.xml itself.
could u help me how can we do in web.xml
<error-page>
<error-code>404</error-code>
<location>/jsp/errorPageFor404.jsp</location>
<error-code>500</error-code>
<location>/jsp/errorPageFor500.jsp</location>
</error-page>
Hope this helps a lot you.
Thanks for replied me boss.Now i will try this Thanks alot..
You are Welcome..
Hai makpandian,
i need to get weberrors like 400,404,406 into one jsp .So according to that error i can display some meaningful message. could u plz help me
Thanks,
Have you tried that way what i suggested to you?
i tried its workin fine also. but problem is i've jsp with so many messages. according to that weberror i need to disply msg. so first i need to get weberrors into that jsp.