You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Murali Krishna <ku...@gmail.com> on 2017/06/14 14:04:16 UTC

customisation of error page when request not found

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,

Re: customisation of error page when request not found

Posted by Murali Krishna <ku...@gmail.com>.
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>


Re: customisation of error page when request not found

Posted by Aditya Sharma <ad...@hotwaxsystems.com>.
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 <ku...@gmail.com>
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,
>