Customization of Error Page displayed via wwerr_api_error_ui.show_html

Hello,
I'm writing PL/SQL-Portlets and use the
wwerr_api_error_ui.show_html procedure to display some error
messages. How can I customize the layout of the generated error
page?
If this is not possible, how can I implement this on my own? I've
tried to use owa_util.redirect_url on the occurance of a failure,
but than the html-code genererated before the error occured is
still displayed. What do I have to do, to cancel the html-output
and print the error message?
Thanks,
Mirko

Hi,
You can use the wwerr_api_error_ui.show_html to print upto three
separate lines of custom text, with or without hyperlinks.
You can derive specific error messages from the error stack using
the wwerr_api_error.get_top or get_errors methods to get the
error records.
You could parse the message name, context etc. from the message
record and even write your custom text.
So by a single call to show_html you can print something like:
Error encountered in check_customer(actual context) validation.
(Print actual error message.)
Refresh Page ( use hyperlink to p_portlet_record.page_url)
The spec is:
procedure show_html
(p_help_url in varchar2 default null,
p_text1 in varchar2 default null,
p_url1 in varchar2 default null,
p_text2 in varchar2 default null,
p_url2 in varchar2 default null,
p_text3 in varchar2 default null,
p_url3 in varchar2 default null);
More details in the API reference at:
http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/
plsql/doc/sdk14shp.htm
If you want to do your own HTML, make sure you trap your error
conditions, keep a record of your specific error messages, and
then clear the stack. Then just print your error messages as part
of the calls from the procedure that traps the error condition (
either show or from the customizations procedures) using htp.p
calls.
You could use the owa_util.redirect call, when the user presses,
say the 'submit/OK' button and then, add parameter for the error
message name. In the show procedure, first check for the error
flag and accordingly display your error messages.

Similar Messages

  • Can be customize a error  page

    Hi !
    When I create a User only view ,when This User access a part of Portal that rend a error .I want to customize this error page.
    regad!
    thangtk

    Actually the ErrorPage parameter in the proxy plugin will work only when we redirect the request to some wrong Weblogic port where no/someother application is running.But when the plugin is correctly configured to redirect to a port where our desired application is running, and in this case you bring down the backend server, then you get the same page which I was talking about.I want to customize this page.

  • HTTP Error 403 - Customized Error Page Display Issue

    Hi,
    I have included 403 in <error-code> in my web.xml and defined proper security constraints. But when I try to access my JSPs directly on Mozilla I see my error page but I try in Internet, I can't see the same page.
    Can someone help me?

    BalusC wrote:
    Then don't send the HTTP error status code in the headers. It would trigger IE to display friendly error pages.
    Best solution would be to let the error page invoke a redirect to self (or another error page) when the HTTP status code is 403, so that it becomes 200 (or anything in range of 200-399) so that IE won't be triggered to display friendly error pages. Best solution would be to let the error page invoke a redirect to self (or another error page) when the HTTP status code is 403You want to say that I should define a error page in my JSP where, when its called, I need to handle the 403 error. Please correct me if I'm wrong. I have defined *403 error code in my web.xml*.
    Again if possible can you please put down a sample how to do it?

  • How do I customize the error pages in Firefox 24?

    I'd like to customize the HTLM/CSS/JavaScript of all the Firefox 24 error pages, i.e. the network connectivity lost, DNS and other standard error pages.

    Hello ekan,
    This can be done, but you're going to need to get pretty dirty to get it done. Ready?
    First, learn about userContent.css:
    http://kb.mozillazine.org/UserContent.css
    http://kb.mozillazine.org/Profile_folder
    Now, the easiest way to learn about the elements on the error page is to go to the source. So, go to the chrome folder in the Firefox program folder, usually C:\Program Files\Mozilla Firefox\chrome in Windows Explorer. Find the file called classic.jar and copy that somewhere else. Rename classic.jar to a .zip file and extract it, preferably to a folder called classic at whatever location you are at. Then, open the classic folder and navigate to ...\classic\skin\classic\global and find the file called netError.css.
    Open the netError.css file in Wordpad (Notepad doesn't seem to work for me because then the lines all run together). See all the code that starts with the # symbol? Those are the things you can easily change. Copy all the #ELEMENT code into your userContent.css file.
    Now you can start making changes to see what you like. I would make small changes at a time to see if it works the way you want. After each change, you need to close and restart Fx. Here's one to get you going:
    CODE: SELECT ALL
    #errorPageContainer {
    -moz-border-radius: 0px !important;
    background-color: red !important;
    That should make the box that surrounds the error message be red with square corners instead of white with a rounded corner border. Remember that before every semi-colon, you need to put !important or the change won't do anything.

  • [OAM] Customize System Error Page

    Hi all,
    we have a protected resource with an already implemented custom login form. This login form is not the one in the war, but an external (an static HTML).
    We also need to customize the System Error page (blue screen) that is thrown when an server error occurs. I am following the OAM documentation but it seems confusing with my scenario here. It says to open the oamcustompages.war, modify the servererror.jsp file and re-deploy it. But then, documentation establish to configure "customWar" in the context of the authentication screen. I can't do this because I would loose the login page (and this is mantained by an external development team so this is not an option).
    The customer wants to modify the blue screen not only for changing the look and feel, but also for catching error and perhaps make redirections (at now, the instruction is to know how to change that page).
    Any help?

    Hi Matt,
    I think the page you are being redirected to is servererror.jsp, which is deployed within oam-server.ear, within its own ngsso-web.war application. You could deploy your own version of this. I assume you could also modify the ErrorPage setting in oam-config.xml to define your own page, though I have not tested this. This would be a customisation, so you would be responsible for the system behaviour when doing this.
    Regards,
    Colin

  • Customize CDN error page

    Dear Sir.
    If users are not in the CDN coverage area, CE will return a built-in error page below. Is It possible to customize it? If yes, how?
    Regards

    The document http://www.cisco.com/en/US/products/sw/conntsw/ps491/products_configuration_guide_chapter09186a00801cc940.html#1064227 has the step-by-step procedure for customizing the Error messages in CE.

  • How do I customize the error page

    Our IT department has adopted a policy that requires a standard look and feel for all error pages encountered in any web application. To this end I need to be able to modify the error page that shows up on the browser when an unexpected error is encountered or a validation error is sent to a new page.
    How can I modify this page? Is there a template for it, and if so where?
    Any help is greatly appreciated,
    Adam Cumming

    Hello Bhavin,
    I have already started looking at this links (you copied twice Marc Lancaster's page, instead of Roel Hartmans's, which is actually : http://roelhartman.blogspot.com/2009/09/transform-ora-xxxx-messages-into.html)
    I'm focused on Marc Lancaster's solution (Friendly Exception Messages), which is also interesting because it covers Ajax manipulation inside Apex (i'm using Apex 2.1).
    But it seems that the apex.ajax.ondemand(...) line doesn't do anything to my application. Here is the code of this line :
    var lRequest = new apex.ajax.ondemand('test', function(){     
                                                          var l_s = p.readyState;
                                                        if(l_s == 1||l_s == 2||l_s == 3){
                                            }  else if(l_s == 4){
                                            gReturn = p.responseText;
                                            $s('ajax-drop',gReturn); }
                                            else{return false;}
                                              );Because that's the first time I'm trying Ajax, I don't see what could be silly (I just copied the code from Marc's example).
    Here is the application process, called 'test' :
    begin
      htp.p('Hello !');
    end;Thanks a lot.
    Dovik

  • How to customize the error pages in iPlanet IAS 6.0?

     

    Hello ekan,
    This can be done, but you're going to need to get pretty dirty to get it done. Ready?
    First, learn about userContent.css:
    http://kb.mozillazine.org/UserContent.css
    http://kb.mozillazine.org/Profile_folder
    Now, the easiest way to learn about the elements on the error page is to go to the source. So, go to the chrome folder in the Firefox program folder, usually C:\Program Files\Mozilla Firefox\chrome in Windows Explorer. Find the file called classic.jar and copy that somewhere else. Rename classic.jar to a .zip file and extract it, preferably to a folder called classic at whatever location you are at. Then, open the classic folder and navigate to ...\classic\skin\classic\global and find the file called netError.css.
    Open the netError.css file in Wordpad (Notepad doesn't seem to work for me because then the lines all run together). See all the code that starts with the # symbol? Those are the things you can easily change. Copy all the #ELEMENT code into your userContent.css file.
    Now you can start making changes to see what you like. I would make small changes at a time to see if it works the way you want. After each change, you need to close and restart Fx. Here's one to get you going:
    CODE: SELECT ALL
    #errorPageContainer {
    -moz-border-radius: 0px !important;
    background-color: red !important;
    That should make the box that surrounds the error message be red with square corners instead of white with a rounded corner border. Remember that before every semi-colon, you need to put !important or the change won't do anything.

  • How to customize the "Invalid URL" error page?

    If you type in an invalid page name in the URL you'll get a page with an error message like this:
    Error: Not a valid URL. (WWC-50014)
    Object not found. (WWC-50003)
    Copyright) 2001, Oracle Corporation. All Rights Reserved
    We need to be able to customize this error page!!
    Can't find any documentation on how to do that. Also searched these forums without any luck.
    Any ideas?

    Hello,
    Customize the template it's not complicated.
    You can create a copy of 0BROADCASTING_TEMPLATE70 (e.g. ZBROADCASTING_TEMPLATE70), make some modifications (with BEx Web Application Designer) and assign this template on Broadcasting field of transaction
    RSCUSTV27.
    Even if you are using Broadcast 7.0, this template is 3.x. So, you have to open with Web Application Designer 3.x
    If you want to remove the E-mail field, I think this is ONLY possible via ABAP tables.
    Check the table RSRD_DISTTYPE  (se16 transaction).
    There you can suppress the MAIL distribution type.
    Good luck.
    Edward John

  • Customization of workspace error pages

    Hi,
    Can we customize the error pages coming in adobe livecycle? If yes can we do it using eclipse?
    Can someone please provide me with a guide or link

    Hi,
    Please check the below links
    How to the Change the Application Stopped Message
    How to Change the Dispatcher Running, No Server Connected Message
    http://help.sap.com/saphelp_nw70/helpdata/en/65/18fc3f9ec4e669e10000000a155106/frameset.htm
    Thanks
    Santosh

  • Weblogic error Page

    Is there a way to change the Weblogic error page (404,500,...)?

    By default we removed the "pumpkin" page. Many customers are not interested
    in having the term WebLogic displayed by default. But, you should still be
    able to change this error Page. The way to do this is inside of your Web
    application deployment descriptor Web.XML.
    Michael Girdley
    BEA Systems
    Learning WebLogic? http://learnweblogic.com
    "vr" <[email protected]> wrote in message
    news:3a9e78d9$[email protected]..
    >
    I can't remember if it was in WebLogic 4.5 or 5.1, but we used to get a404
    weblogic error page with a gold background and a graphic symbol of "w" for
    weblogic. Now in WebLogic 6.0 we just get a plain white page with black
    text for the 404 error. Is that available at all in WebLogic 6.0? Ifnot,
    how can we get it? It seems like in the previous versions of WebLogicthey
    allowed you to customize you error pages if you wanted in
    weblogic.properties
    I can't find any reference to doing that in WL 6.0 through the Console
    (never mind that I can't find an actual weblogic.properties or equivalentto
    alter manually). So any insight/suggestions on this issue?
    Thanks,
    V

  • JSF tags are not rendered in error page

    I have configured error page for HTTP 404 error in web.xml like this
    <error-page>
    <error-code>404</error-code>
    <location>/Common/error.jspx</location>
    </error-page>
    Faces Servlet is configured as follows
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    My error page (error.jspx) looks like this
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html" xmlns:trh="http://myfaces.apache.org/trinidad/html"
    xmlns:tr="http://myfaces.apache.org/trinidad" xmlns:c="http://java.sun.com/jsp/jstl/core">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <html>
    <head>
    <title>Error Page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    </head>
    <body id="b1">
    <h4 style="color:red">An Error Occured. Please click Back button or Signout.</h4>
    <input type="button" value="Back" onclick="history.back()"/>
    <tr:commandButton id="cb1" text="SIGN OUT" action="exit" actionListener="#{Login.LogOut}"/>
    </body>
    </html>
    </jsp:root>
    When I deploy application and run into 404 error, page displays error message with only Back button. I don't see SingOut button. I have checked url and it follows /faces/* pattern. Still to double check, I made a change and configured servlet mapping in web.xml as
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    <url-pattern>*.jspx</url-pattern>
    </servlet-mapping>
    Still commandButton is not rendered. I understand that my error page don't have access to FacesContext or not going through Faces Servlet. I know this is a small issue, but couldn't figure out what can be done. I have also tried using .xhtml and .jsf as per googled suggestion. But no luck
    I have tried different solutions to my problem and googled for solutions. But I couldn't get it resolved.
    So can you please provide any suggestions...
    Edited by: user1818355 on May 22, 2013 2:29 PM

    I think my faces servlet is configured to handle URLs having /faces/* pattern. I don't have any folder named with faces but I can access all my web pages which have /faces/ in their url. All jspx pages in application are configured in task flows. So I think they have access in FacesContext. But error page is configured in only web.xml and some how it is missing access to FacesContext and not rendering JSF tags. Any help?

  • Why am I getting this error page?

    Hi All,
    On my application I have a form that I use to add new Users of the system. On the Users table User Id is the primary key & it's the first item on the form. Also, on this form I have a password field (among other fields) which is read only & it's initially set to Password1 for new users by clicking on the Set button next to the Password field. behind this button there's a page process: Process Point: OnSubmit - After Computations And Validations that does this: BEGIN
    :P2_PASSWORD := 'Password1';
    END;When I enter a new user, the folllowing happens;
    1. When I specify User Id first & then click the Set button the page redirects to an error page & displays:
    ORA-01403: no data found
    Unable to fetch row.2. When I click the Set button first - the password field is set to default password & regardless of the order in which I fill in other fields, I get to create a new user.
    3. When I fill in all other fields first (including setting password to Password1 after I have filled in these other fields before) & I make sure that I fill in the User Id field last - the application does not crash - a new user is created.
    I have even changed Process Point to:
    OnSubmit - Before Computations And Validations
    Before Header
    After Header& the page process sequence to the lowest on list - but does not make a any difference! How come I'm getting that error? Thank you for your time.
    Regards
    Kamo

    Hi Kamo,
    I noticed following things in you page:-
    1. You have Fetch Row from USERS which is fired on page load when USER_ID field is not null.
    Now, when you enter all the data and click on set button , your page loads and USER_ID field this time is not blank.. so ur page run Fetch Row from USERS process which tries to get data from table for USER_ID enter in that field. since this user id does not exist you get the error message.
    I Modified you code...
    instead of a page process , I have create two dummy button which calls javascript and set that field.. I have entered the javascript in page header..
    You will see two botton both the buttons are actually hyperlins.. and does same function... so you can delete one of them.. you can delete your set password process also..
    Regards,
    Shijesh

  • Customizing 400 and 500 error pages

    Hello,
    We are using default 404 and 500 error pages, how can I customize these error pages?
    I have changed the default error page under global settings, however it is still not showing the error page which I have changed?
    Could someone help in this regard.
    Thanks in advance
    Message was edited by:
    419365

    Normally those are page not found errors.
    I got the steps from metalink. See below.
    Subject: Changing the default error pages
    Hi,
    Steps mentioned below are used to have customize error message page for http 404 error,you can find out error no. for 'internal server error' and apply same steps.
    1.Create an HTML file (Say test.html) as per your requirement and place it in
    application_home\Apache\Apache\htdocs folder.
    2.Edit the HTTPD.conf file and Uncomment the Local redirects as follows
    # 2) local redirects
    ErrorDocument 404 /test.html
    Save it.
    3. Restart the HTTP server.
    ********

  • Customising the error page

    The situation is:
    A portal page is configured that requires login before accessing this
    page. Oracle portal logon server PL/SQL API is used to verify the user
    id, password and privilege. Thus, whenever the user dosen't have enough
    privilege to access this page, the logon server will raise an exception
    and redirect to an error page.
    Now the question is,
    can we customise the error page to fit our needs or can we change the
    error redirect parameter somewhere in Oracle portal.
    Regards
    Mahantesh

    Actually, when a user has insufficient privileges to access a particular page, or area of the product, it is the partner application (in this case the Portal) which delivers the error page -- not the Login Server.
    Unfortunately, the answer to your question is, no. There is no configurable way to customize the error page.

Maybe you are looking for

  • BSOD: bad_pool_caller, while accessing Internet (youtube video, bgm, online games)

    Dear all readers of this writing, I truly want to get help or advice of solving my blue screen problem called "bad_pool_caller". Even, I nicknamed myself as "bad_pool_caller of death" because this caused several painful experiences while playing onli

  • Non English language support

    Hi, We use measurement studio 6 in a non Unicode application, written VS2008 C++. We have problems displaying non English characters in CWGraph. 1. Is there a way to set language or codepage for CWGraph dynamically? statically? 2. Will switching the

  • Lumia 822 updates returning error code 80072ee2

    Purchased a Lumia 822 in January.  On the web, I see the current version of software for the 822 is 8.0.10211.204, hardware is 1532.5951.1250.1012  My phone is currently on 8.0.9905.12 and 1532.2108.1244.0003  It has not informed me I have any update

  • HT6114 Install problem

    After installing the most recent Mavericks upgrade (10.9.2) I now have a big gray question mark next to the Apple icon (@) on my dock.  When I move my mouse over the question mark it says:  CF_INTRO_6_LANGUAGE.  I don't know what this means or what t

  • Server Installation fail

    Hi, I try to install this new server at a a macbook (Aluminium 13'', Late 2008, 2GHz Intel Core 2 Duo, 4 GB RAM, Mountain Lion 20.8.3), but, afte hoours and hours of delay the configuration not finish. I stop the application and I try it again, but,