Error-page with browser check?

I am trying to add an error-page to my BSP-application.
is there a way to check which browser (and version) the user uses?
i would like to show a error page for all users that don't use IE..

Might be more work than you need.
In your login mask you can do a simple JavaScript check for the browser type and redirect as needed  for a browser that doesn't work and to the login for one that does.
You can also give them a link to proceed to the login anyway as some browser/people hide the actual browser type they use or they use a browser that gives a strange type but is IE compliment and would work anyway.

Similar Messages

  • Error Page with my own Error Message based on table

    <p class="MsoNormal"><span style="" lang="EN-AU">Hi All<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">I want to share my code (based on Apex_Lib code. Thanks Patrick) , maybe can help somebody else<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">Purpose: Replace the DB errors messages ( i.e ORA-00001- primary constraint ) with my own Message fetched from a table.<o:p></o:p>  <o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">Components: 4 components<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">1. Java Script function ( MyErrorPage )<o:p></o:p><br>2. My Custom Error Page Template<o:p></o:p><br>3. Application item ( you can use any item )<o:p></o:p><br>4. Application Process ( getErrorMsg )<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU"> 5. My Error Table.<span style="">  </span>( Provided just as example )<o:p></o:p><br>6. Display example<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU"> Integration:<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU"> 1 Identify your Error Page Template and Go there. In my case for example is LOGIN<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">1.1 Under Definition / Header. <o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU"> Copy the follow JS<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU"> &lt;script type="text/javascript"&gt;<br><br>function MyErrorPage(p_err_item,p_err_process)<br>{<br><br> var vElementList = null;<br> var vErrorStack  = null;<br> var vOraError    = null;<br> var vOraCode     = null;<br> var vAjaxRequest = null;<br> var vAjaxResult  = null;<br> var vMyMsg       = '';<br><br> vElementList = window.document.getElementsByTagName("div");<br> for (i=0; i &lt; vElementList.length; i++)<br> {<br>  if (vElementList.className == "ErrorPageMessage")<br>  {<br>    vErrorStack = (vErrorStack ==null?"":vErrorStack+"&lt;br/&gt;")+vElementList[i].innerHTML;<br>    vElementList[i].innerHTML = '';<br>    vOraError = vErrorStack.split("ORA-");<br><br>    for(var i=1; i &lt; vOraError.length; i++) {<br><br>      vOraCode = vOraError[i].substring(0,5);<br><br>      vAjaxRequest = new htmldb_Get(null,&amp;APP_ID.,'APPLICATION_PROCESS='+p_err_process,0);<br>      vAjaxRequest.add(p_err_item,vOraCode);<br>      vAjaxResult = vAjaxRequest.get();<br><br>      if (vAjaxResult) {<br>        vMyMsg = vMyMsg + vAjaxResult + '&lt;br&gt;' ;<br>      } else {<br>        vMyMsg = vMyMsg + 'ORA-'+vOraError[i].substring(0) + '&lt;br&gt;' ;<br>      }<br><br>    }<br>    document.getElementById('ORA').innerHTML = vMyMsg;<br><br>  }<br> }<br>}<br>&lt;/script&gt;<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">   <o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">1.2 Under Definition / Header. <o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">&lt;body onload="MyErrorPage('F103_ERR_CODE','getErrorMsg')" #ONLOAD#&gt;#FORM_OPEN#<o:p></o:p>  <o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">You can replace with your own ITEM and APPLICATION PROCESS<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">2. Under Error Page Template Control<o:p></o:p>  <o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">&lt;table summary=""&gt;&lt;tr&gt;&lt;td&gt;&lt;img src="/i/error.gif" border="0" /&gt;&lt;/td&gt;<o:p></o:p><br>&lt;/tr&gt;<o:p></o:p><br>&lt;b id='ORA'&gt;Error&lt;/b&gt;<o:p></o:p><br>&lt;tr&gt;&lt;td&gt;&lt;a href=#BACK_LINK#&gt;#OK#&lt;/a&gt;&lt;/td&gt;<o:p></o:p><br>&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;<o:p></o:p>  <o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">3. Application Item <o:p></o:p></span></p><p class="MsoNormal"><span style="" lang="EN-AU">F103_ERR_CODE<span style="">   </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">4. Application Proccess.<o:p></o:p>  <o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">Name : getErrorMsg<o:p></o:p><br>Process Poing : ON DEMAND<span style="">  </span>( Make sure about this )<o:p></o:p><br>Process Text :<o:p></o:p>  <o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">declare<o:p></o:p><br><span style="">  </span>l_msg<span style="">  </span>varchar2(500);<o:p></o:p><br>begin<o:p></o:p><br><span style="">  </span>for i in (select msg_code, msg_desc from apex_message<o:p></o:p><br><span style="">             </span>where msg_code = :F103_ERR_CODE ) <o:p></o:p><br><span style="">  </span>loop<o:p></o:p><br><span style="">    </span><span style=""></span>l_msg := 'GEN-'||i.msg_code||': '||i.msg_desc;<o:p></o:p><br><span style="">  </span>end loop;<span style="">    </span><o:p></o:p><br><span style="">  </span>htp.prn(l_msg);<o:p></o:p><br>end;<o:p></o:p>  <o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">5. Create Apex_message (<o:p></o:p><br><span style=""> </span>id<span style="">               </span>number,<span style="">          </span>-- PK<o:p></o:p><br><span style=""> </span>msg_code<span style="">  </span>varchar2(10)<span style="">     </span>-- UK<o:p></o:p><br><span style=""> </span>msg_desc<span style="">  </span>varchar2(100) );<o:p></o:p><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">6. Scenario: Table or View does not exist coming with 3 "ORA" errors<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">There is only one record in Apex_message with msg_code = '00942' therefor it will replace error message for ORA-00942.<span style="">  </span>( note that value for msg_code is<span style="">  </span>'00942' and not 'ORA-00942' )<o:p></o:p>  <o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">Before<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">ORA-06550: line 1, column 28: PL/SQL:<o:p></o:p><br>ORA-00942: table or view does not exist<o:p></o:p><br>ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 247.8pt; text-indent: -247.8pt;"><span style="" lang="EN-AU"> After<o:p></o:p><br></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">ORA-06550: line 1, column 28: PL/SQL:<br>GEN-00942: My own Message <o:p></o:p><br>ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="EN-AU">I did this because I do not want to create my own DML process for each table<o:p></o:p><br>I hope this can help. <o:p></o:p>  <o:p></o:p></span></p> <p class="MsoNormal">Regards</p> <p class="MsoNormal">Marcelo</p>

    True the main method does not throw any exceptions, that's because there is no higher level to throw them to (actually it implicitly throws any uncaught exceptions to the JVM). That does not mean that you can't write your own try catch block around the code in the main method.

  • How to make a 500 error page with exception stacktrace

    Hi Guys ,
    The weblogic default 500 error page is not showing the exception stacktrace. we try to build a customer error page to display trace just like tomcat .
    By pointing 500 error to myerror.jsp in web.xml ,we are able to replace defaut page. but still can't get the trace by using ex.printStacktrace() , it look like weblogic swallow the stacktrace and hijack the exception object.
    Any idea ?
    KY

    anyone ?

  • Reader XI error 507 with browser control in VB6

    I have a VB 6 application that has an embedded browser control.  We are in the process of upgrading to Windows 7.  If Reader X (10.1.4) is installed, the PDF (which is viewed through an ActiveX control) displays fine.  If Reader XI (11.0.1) is installed, I get the "There is a problem with Adobe Acrobat/Reader.  If it is running, please exit and try again. (103:103)".  I also get an error code of 1014:1014 (which goes away if I open Reader XI and accept the EULA), and 507:507.
    Our security group will most likely insist on Reader XI, so figuring this out is a priority.  Any help/advice would be very much appreciated.
    Thanks,
    G. Harland

    This question might have a better chance of being answered if posted in one of the development forums such as: http://forums.adobe.com/community/design_development/pdf_workflow

  • How to show error page in browser when Column cant be null

    Hello everyone,
    I've got a Record Insertion Form, and some of the fields are
    set as "NOT NULL". When I miss out a few fields, the browser shows
    the text - Column 'propertytype' cannot be null, which is fine, as
    it cannot be null. But how do I redirect this to a user friendly
    page which basically says, "sorry you havent written in all the
    fields, please go back". How do I do this in dreamweaver?
    Thank You

    You need to validate all user input prior to executing any
    sql statement. That will do it. There are also techniques to trap
    error messages, which vary depending on the scripting language you
    are using.

  • How can we define custom error page in protal application

    How can we define custom error page in protal application, like we define "jsp Error page " in JSPs

    Hi,
    Check these:
    Customization of Portal Runtime Errors and portal standard error codes
    http://help.sap.com/saphelp_nw04/helpdata/en/9a/e74d426332bd30e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/ec/1273b2c413b2449e554eb7b910bce7/frameset.htm
    Regards,
    Praveen Gudapati

  • How to change the default Layout Of the Error Page (to hide Home link)?

    How to change the default Layout Of the Error Page (to hide Home link)?
    If a user want to view some page that he/she don't have access to view it, a error page with this message will be displayed.
    "You do not have permission to perform this operation. (WWC-44131)"
    The error page, have in the Upper right page, Home link and Help link.
    My question is, How to Hide HOME link and HELP link in the Page?
    I try to find the template of the page, but failed to do that.
    Can anybody help?..it urgent.
    Thanks.

    Modifying the error page is not supported in the current release of Portal (9.0.2). You will be able to do this in the upcoming 9.0.2.6 release, planned for the end of May.
    Regards,
    Jerry
    PortalPM

  • How to print chinese web page with netscape browserver in Solaris 9 OS ?

    Dear All,
    I would like to print chinese web page within netscape browser in Solaris 9 Traditional Chinese OS, the print out result is garbage code on the paper not correctly chinese fonts.
    I can print out correctly the chinese document create by StarSuite 7.0 on Solaris 9 OS environment and also the chinese web page is correctly display within Netscape browser but for printing is abnomal result.
    Can someone point me to how to do print chinese web page with browser in Solaris 9 environment ?
    Best Regards,
    -- Kuo

    hi
    i have encountered this problem before and i remember downloading some fonts package and installing it. u could google search your question and it should provide the solution.thats how i stumbled upon the package.
    cheers,
    bunny

  • Theme 25 error page not rendering all CSS/JS - bug?

    Hi,
    I'm using theme 25 and my theme error page is "No Tabs - No Sidebar", Application Express 4.2.1.00.08
    If I receive an error in my application, my error page has no style.
    When I compare a page displaying normally and the error page (with the same template) I notice file references are missing from both the JS & CSS "File URLs" attributes.
    The template shows JS & CSS respectively - all are included when rendering a normal page. The variables are application level substitution strings.
    #IMAGE_PREFIX#libraries/modernizr/2.5.3/modernizr.min.js?v=#APEX_VERSION#
    [if lt IE 9]#IMAGE_PREFIX#libraries/respond-js/1.1.0/respond.min.js?v=#APEX_VERSION#
    &THEME_LOCATION.js/4_2#MIN#.js?v=#APEX_VERSION#
    &TEMPLATE_LOCATION.vbs_1.0.js
    &JS_LOCATION.
    &THEME_LOCATION.css/4_2.css?v=#APEX_VERSION#
    &THEME_LOCATION.css/responsive_grid.css?v=#APEX_VERSION#
    &TEMPLATE_LOCATION.vbs_1.0.css
    &CSS_LOCATION.What is rendered is only
    <script type="text/javascript" src="/i/libraries/modernizr/2.5.3/modernizr.min.js?v=4.2.1.00.08"></script>
    <!--[if lt IE 9]><script type="text/javascript" src="/i/libraries/respond-js/1.1.0/respond.min.js?v=4.2.1.00.08"></script><![endif]-->
    <script type="text/javascript" src="/i/themes/our_theme/custom/cons/cons_1.0.js"></script>
    <!--[if IE]><link rel="stylesheet" href="/i/css/apex_ie.min.css?v=4.2.1.00.08" type="text/css" /><![endif]-->
    <link rel="stylesheet" href="/i/libraries/jquery-ui/1.8.22/themes/base/jquery-ui.min.css" type="text/css" />
    <link rel="stylesheet" href="/i/themes/our_theme/custom/cons/cons_1.0.css" type="text/css" />I tried replacing the substitution strings in the missing files with the full path and they are still absent.
    Scott

    Hi Scott,
    thanks for providing the test case. Your problem is similar to bug 16342445 - page rendering error may result in developer toolbar links not working (Bug report - Developer toolbar links
    which we have already fixed in 5.0. I have now backported the fix to our next Patch Set (4.2.2)
    As a workaround for the time being you could duplicate the CSS and JavaScript files into the "Error Template" property.
    Regards
    Patrick
    Member of the APEX development team
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • How to redirect to an error page when database is down

    We have build an struts/jsp-application with JDeveloper 10g and ADF. If the connection to the database fails, we get a plain page with header "500 Internal Server Error" and the exception and a stack trace. Of course we want to catch this exception and redirect the user to an error page with all of the standard design elements of our site and with a textual description of the error of our one choice.
    Our attempts to solve this includes adding error-page tags with error-code and exception-type:
    <error-page>
    <exception-type>javax.servlet.jsp.JspTagException</exception-type>
    <location>error.jsp</location>
    </error-page>
    <error-page>
    <exception-type>java.lang.Exception</exception-type>
    <location>error.jsp</location>
    </error-page>
    <error-page>
    <exception-type>oracle.jbo.JboException</exception-type>
    <location>error.jsp</location>
    </error-page>
    <error-page>
    <exception-type>oracle.jbo.DMLException</exception-type>
    <location>error.jsp</location>
    </error-page>
    <error-page>
    <exception-type>java.sql.SQLException</exception-type>
    <location>error.jsp</location>
    </error-page>
    <error-page>
    <error-code>500</error-code>
    <location>error.jsp</location>
    </error-page>
    Are there other ways to do this, or are there things we have forgotten to do, that has to be done for this solution to work.
    We have also tried try and catch in a variety of the lifecycle methods in the DataAction subclass for the page, but none of these are ever called. It seems the error happens before the first lifecyle method starts. We can't figure out where to catch this exception.
    In other cases the web.xml mechanism seems to work.

    Try the Global Exception Mechanism within Struts...

  • CFERROR type = "REQUEST" -- How to dynamically display ERROR page?

    I applied the cferror tag in Application.cfm:
    <cferror type = "REQUEST"
    template = "../applications/main/view/dspError.cfm"
    mailTo = "[email protected]">
    The CF error template does not dynamically show variables
    except the error message (I'd like it shows header, menu bar,
    footer, etc.) . Is any way to display the error page with CF
    variables / URL variables / form variables?
    Thanks in advance,
    Kevin

    Using an onError function in an application.cfc file will
    give you more flexibility than using a cferror tag.

  • How to customize error page

    Hi,
    Reports 10g.
    I use a validation trigger for a parameter. When it returns FALSE, I have an error page with REP-546: Invalid parameter input.
    Is it possible to customize this page ? Change the text for example ?
    Thank you

    Hi,
    Customization of error messages is not supported.
    Navneet.

  • 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

  • I have received a "check your billing information" pop up and a countdown but the hyperlink to resolve it comes up with an error page?

    I have received a "check your billing information" pop up and a countdown but the hyperlink to resolve it comes up with an error page? My billing information hasn't changed and I can't seem to use the chat to resolve this problem.

    Hang in there. Getting in touch with live support by web chat or phone is your only way to resolve such issues, annoying as it may be.
    Mylenium

  • I desperately would like to update Firefox to version 10 from version 9 but each time I try, I am stuck with FF10 checking addons for comparability and the Welcome page opening every time I start the browser.

    Windows 7 64 bit
    I desperately would like to update Firefox to version 10 from version 9 but each time I try, I am stuck with FF10 checking addons for compatability and the Welcome page opening every time I start the browser. I continue to have to revert to version 9 to resolve this issue.

    Sorry to be a while getting back! Tried all of that with no sucess so this AM, bit the bullet and deleted the FF folder from programs and downloaded and installed FF 10.01. Still was plagued with the same problem. Went into the appdata folder and there were two sessionstore.js files. Deleted them both, restarted the browser and no compatibility check for add-ons was done at start up and the extra tab for Welcome to FF was no longer opening Everything seems to be working as it should and I did not loose any of my settings.. Thank you for trying to help and I hope my solution helps anyone else who might experience this in the future. Here's hoping the next update goes smoother!

Maybe you are looking for

  • LDAP users Faicng Error While Accessing the ESS Iviews in Portal

    Hi, My Portal is SAP EP 7.0 SP20 And ECC 6.0 SP16. UME users able to access the ESS MSS Iviews.But only one LDAP User only access ESS/MSS Iviews Other getting the Below error. Critical Error A critical error has occured. Processing of the service had

  • IPhoto '08 quiting unexpectedly

    Just upgraded to iLife '08 and iPhoto quits unespectedly when another software becomes activated. If I'm using iPhoto and and activate iTunes iPhoto closes imediately. I just took a trip to Europe and took about 2k photos and while using iLife '06 wa

  • Computer dying when it still has battery life?

    I don't know what's going on, my laptop is just shutting off without any warning and there is still about half of the battery life left. I will just be searching the web or chatting on AIM and it just shuts down. Any explanation for this or something

  • How to rewrite this query

    How can i rewrite this query so it uses less inner joins (it causes my temp space to explode :) ) ( SELECT Waardes.*, Tellers.Nr_Dataitems, Tellers.Nr_Details FROM ( SELECT extractvalue(Value(el_node), 'Node/Id') node, extractvalue(Value(el_dataitem)

  • UI class for custom Button

    Hey frineds can any one tell me how can i make a UI class for my custom component? Let me explain this is detail I have a custom button called MyButton extended From JButton. I can change its appearance at runtime if i define my own UIClass called My