customisation of error page when request not found

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

customisation of error page when request not found

Murali Krishna
Hi,
How to show customised page for 404 error in different applications like
eCommerce, accounting ... etc and should serve with 404 status code .

--
Thanks & Regards
K.Murali Krishna,
Reply | Threaded
Open this post in threaded view
|

Re: customisation of error page when request not found

Aditya Sharma
Hello Murali Krishna,

Error page can be configured in web.xml file of the component using
<error-page> tag like this

<error-page>
    <error-code>404</error-code>
    <location>/error/404.jsp</location>
</error-page>


where 404.jsp need to be stored in webapp/componentname/error directory.

The way I understand that


Apache OFBiz runs with an embedded Apache Tomcat server. ComponentContainer
loads each component and individual component can be configured in
web.xml stored in webapp folder of specific components.



Thanks and Regards,

*Aditya Sharma* | Enterprise Software Engineer
HotWax Commerce <http://www.hotwax.co/> by HotWax Systems
<http://www.hotwaxsystems.com/>
Plot no. 80, Scheme no. 78 Part 2, Near Brilliant Convention Center, Indore,
M.P, India - 452010
Cell phone: +91 7415786147

<https://www.linkedin.com/in/aditya-sharma-78291810a/>
<https://www.facebook.com/divinecreatureaaditya>
<https://www.instagram.com/iamaadi7/>

HotWax Systems recently received 8 mentions in *The Gartner Digital
Commerce Vendor Guide, 2016 *by Gartner, Inc., the world's leading IT
research and advisory company. Learn more about our research here
<https://www.gartner.com/technology/media-products/newsletters/HotWax/1-2UVLP6M/index.html>
.

<http://www.hotwax.co/>

On Wed, Jun 14, 2017 at 7:34 PM, Murali Krishna <[hidden email]>
wrote:

> Hi,
> How to show customised page for 404 error in different applications like
> eCommerce, accounting ... etc and should serve with 404 status code .
>
> --
> Thanks & Regards
> K.Murali Krishna,
>
Reply | Threaded
Open this post in threaded view
|

Re: customisation of error page when request not found

Murali Krishna
Thank you Aditya Sharma ,
I tried that but it is displaying empty page , I tried with simple  jsp  page .
like this
<html>
        <head><title>We are in Jsp page</title></head>
        <body>
                <font size="10"><%="Hello JSP!" %></font>
        </body>
</html>