How to customize intraweb error pages

Source: Internet
Author: User

When an error occurs in the intraweb program, it jumps out of the atozed company page, making our program look less professional. The following is an article from the Internet:
How to customize the error screen in intraweb
In order to have intraweb display your error page instead of the default one, you must take the following steps:

Create a file named "iwerror.html"
Fill it with something like this:

<HTML>
<Head> <title> da error is in da house </title> <Body>
<P align = "center">
<P>
<H3> beware the mighty Error !!! </H3>
</Body>
</Html>

Place iwerror.html in the application "templates" folder.
Use the following placeholders inside, wherever you want them:

{% Atozedlogo %} to display the atozed logo
{% Intraweblogo %} to display the intraweb logo
{% Content %} to display the exception message
{% Appaddress %} to display the application address
{% Exceptionspecific %} to display an exception specific explanation (only a few are defined)
{% Appname %} to display the application name

Do not use single quotes
The file iwerror.html is output via Javascript. Make sure you don't have single quotes in it, or else you'll end in a javascript error.

Bytes ------------------------------------------------------------------------------------------------
How to customize error pages of intraweb.
To enable intraweb to display your error page, rather than the default one, you must follow the steps below:

Create a file named "iwerror.html"
Write the following code:
<HTML>
<Head> <title> da error is in da house </title> <Body>
<P align = "center">
<P>
<H3> beware the mighty Error !!! </H3>
</Body>
</Html>

Put iwerror.html in the "templates" folder of the project.
You can use the text in the following placeholder ({%}) Anywhere (including {%} in use })

{% Atozedlogo %} displays atozed logo
{% Intraweblogo %} displays intraweb logo
{% Content %} displays exception messages
{% Appaddress %} shows the application address (URL address)
{% Exceptionspecific %} displays exception details (only some are defined)
{% Appname %} displays the application name

Do not use single quotes (in files)
The iwerror.html file is output through JavaScript. Make sure that there are no single quotes in your file, otherwise your page will be terminated in a javascript error (unable to output ).

--------------------------------------------------------------------

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.