Getting the name of the page that throws an exception from an error page

How can I get the name of the page that throws an
error exception from an error page?.
Thanks.

In each of your jsp pages, u should set the name of page in the request object. e.g.
In jsp page called main.jsp you should do request.setAttribute("pageName","main.jsp");
Then in error page you can get the name like
String pageInError = (String) request.getAttribute("pageName");
I hope that answers your question.
thx

Similar Messages

  • Mail running under LIon no longer grays out the name of the sender of an email that has been read.  How can I get that to happen?

    Under the old version of Mail, when an e-mail was read, the name of the sender was greted out so that I knew I had read that email.  This does not seem to happen under the new Mail thaqt came with Lion.  Help!?
    Chuck Humphrey
    [email protected]
    303-997-2755

    Kirk,
    Thanks again for your suggestions. No, I don't get an
    error message. In fact nothing happens. My name and
    key are typed in and from what I understand, once you
    do that with a real key it directs you to the
    registration page. When I get done entering the
    information the window just sits there without any
    button or option to continue.
    QT Pro is already in the QT (non-pro) you installed and the key (which is a hash of your name in part) allows the Pro features to work.
    No redirect, internet, nothing like that. As such many people have activated and think they haven't. Just look at the menu items and see if the "Pro" logo is shown next to a few (which are greyed out and not available without Pro). If not you are done.

  • How can i get the name of the lan that the task is in from a bean

    I'm using jdeveloper ps6 and i wan to get the name of the lane that the my task now is on to display on a page and to disable and enable some
    user fields depending on the name of the lane, as i've 4 organizations and i want to know the name the current organization to disable some fields.

    did you try to get it from the task payload? In the task payload we will have swimlane role. I think, you can get it from the payload.
    Thank you,
    Keshav CH

  • Just updated my iphone. Now I can se I have two? iCloud accounts? One of them appears on my phone, and I have forgotten the password. When I try to add the other account, I get the message that this account is already added, but with the name of the first

    Just updated my iphone. Now I can se I have two! iCloud accounts? One of them appears on my phone, and I have forgotten the password. When I try to add the other account, I get the message that this account is already added, but with the name of the first account where there is no available password. I have tried several times to reset the password, bun I don't get the information I need - I have no access to email. What can I do?

    Hi, thanks for the suggestion. I have tried as you suggested, and when opening the "purchased" apps some have the icloud logo next to them, but I only have "OPEN" against "Find My iPhone". When opening it up, it goes through the same routine; needs to be updated before proceeding, and wouldn't update because I don't have IOS8.
    Anything else I could try, or am I doomed!
    All of your help is much appreciated, thanks

  • I have a file that is something I recorded on my camcorder.  I am trying to open it and it keeps saying that a required codec isn't available.  This is the name of the file. M2U00001.MPG.  What can i do to get it to play.

    I have a file that is something I recorded on my camcorder.  I am trying to open it and it keeps saying that a required codec isn't available.  This is the name of the file. M2U00001.MPG.  What can i do to get it to play.

    The info in this thread should help you - https://discussions.apple.com/thread/3648239?start=0&tstart=0 

  • Getting the name of the host that the forms server is running on?

    Hi
    I have a very simple question, but can't find a simple answer at the moment.
    Is there something like GET_APPLICATION_PROPERTY within forms 10g that I can use to return the hostname of the machine that the form is running on (i.e. the name of the application server).
    I know that I could use one of the calls to query an appropriate environment variable (COMPUTERNAME on Windows or HOSTNAME on UNIX), but would rather have something that is platform independent if possible.
    Does such a call exist?
    Thanks
    Steve

    If you looked up the "weblogic.management.adminhome",
    home.getMBeanServer() returns the Admin server's mbean server, and
    remoteMBeanServer.getServerName() returns the admin server name... :-)
    thanks,
    -satya
    Francine Grimmer wrote:
    I don't follow your reply...
    In the weblogic example for creating connection pools, I first must get the mBean
    Home interface and then call getAdminServer. But must pass the name of the admin
    server, which I don't have. So when you say ServerMBean, are you talking about
    the Managed Server MBean? It can have a different name than the Admin Server.
    Satya Ghattu <[email protected]> wrote:
    If you have the ServerMBean on the admin server, mbean.getName() gives
    you the Name of the server.
    Francine Grimmer wrote:
    Is there a way the get the name of the Weblogic Admin Server? I amtrying to use
    the MBean interface to create a connection pool in my application deployedon
    Weblogic 8.1 SP2. But I don't want to hard code the name of the AdminServer in
    my code. Is there a weblogic API to call to get it?

  • Just published a new site to an FTP server and I got a 404 error message saying the site doesn't exist. When I retype the name of the site, I get a page from my hosting service saying this is the future home of [my site]. Any ideas?

    Just published a new site to an FTP server and I got a 404 error message saying the site doesn't exist. When I retype the name of the site, I get a page from my hosting service saying this is the future home of [my site]. Any ideas?

    Hi roddy,
    thanks for responding. I read your link, looked at my settings and they were all correct. I tried to do a republish and got this message: The requested URL /childrenandcaring/index.html was not found on this server.
    When I type the address in the address bar, I go to the site and the page says: This is the new site childrenandcaring.com
    Any other ideas?
    Suzanne

  • I know the name of an object - how do I get the name of the object that contains it?

    If I have a Movieclip, I can trace the name of the Movieclip
    that contains it using the _parent property.
    With a generic object, is there a way to trace the name of
    the object that contains it?
    Please, please tell me - this will be a huge help.
    Thanks

    Thanks for these comments - my problem isn't with MovieClips.
    I need to know if there is something which is the generic Objects
    equivalent to the MovieClips _parent property.
    Here's some code that hopefully will help explain further:
    class MyClass extends Object {
    var myObject:Object;
    function MyClass (){
    myFirstObject = new Object();
    myFirstObject.theParent = this;
    private function getNameOfParent(p_object:Object){
    // Some code to return the name of the object that contains
    p_object
    trace(p_object.__proto__); // Output: [object Object]
    trace(p_object._parent); // Output: undefined
    trace(p_object.theParent); // Output: [object Object]
    return ???
    public function doSomething(p_num:Number){
    var parentName = getNameOfParent(myObject);
    // do some more action...
    Timeline code:
    var myClass1 = new MyClass();
    myClass1.doSomething();

  • How to get the name of the attachment in Sender Mail Adaper?

    hi mates,
    I've scenario a where in I need to pick up a mail with an attachment and change its extension and send it to target system using file adapter.
    I'm able to pick up the mail with attachment using sender mail adapter but not able to get the name of the attachment so that I can use it in mapping or on the adapter configuration. How do I read the name of the attachment and manupulate it?
    I looked at the thread sender mail adapter - attachment name But the solution is not described. I think Stefan is talking about the SP!2 for PI 7.0. I'm on XI 3.0 what is the equivalent SP for that, SP20? Stefan, can you please throw me more light on it?
    I appreciate your valuable inputs
    thx in adv
    praveen

    Thanks Aamir.
    Earlier I replied to that thread asking for more details...but did not see the response...
    anyways, thanks for your quick help..
    but I wonder abt the PI SP12/ XI SP20 pre-requisite. We can have adapter modules on SPs lower than PI SP12/XI SP20 as well, can we not?
    thanks
    praveen

  • How do I get the name of the app server in an application

    I am trying to run two app servers of one database. My problem is that I am trying to insert a link in a report that would link to another report by passing parameters through the URL which works fine if you stay on one server.
    If I request the link from http://portal1/servlet..... when the app is being served from http://portal2/servlet... server. How do tell the app that I am on portal2 and the the URL for the next page should be http://<the name of the server used>/servlet....
    The ideal is if the app servers LSNR_TOKEN or SITE_ID could be returned on request from a package.
    Thanks,

    Use the following function to get the corresponding server name
    wwctx_api.get_host
    and you can concatenate this with other values to form your required URL.
    (eg: l_url := 'http://'||wwctx_api.get_host||'/pls/portal30/...')
    Hope this helps!
    -Krishnamurthy

  • How to get the name of the subform

    Hi All,
    My form is designed in the below structure.
    masgterpage-->form1-->table
                                  -->subform
    How can i get the name of the subform dynamically(as it varies from page to page, but the rest of the structure is same).
    Please help me.
    Thank you,
    Saravanakumar.

    Hi there,
    the name property would be the correct attribute to get the subform name, just by looking at the code it doesn't seem like it's doing the right thing
    I am assuming that you send Main in the function countChk() which would look something like this
    countChk(Main);
    And you probably want to make sure you are entering the right subform so you need to keep that loop at the end of the function
    but if you want to get through all the checkboxes inside that subform you must do a loop through that node to find each checkbox
    I am assuming that the function would probably look something like this
    function countChk(vNode) {//Starts vNode with Main
         for (var i = 0; i < vNode.nodes.length; i++) {
              if (vNode.nodes.item(i).className === "field") {
                   if (vNode.ui.oneOfChild.className === "checkButton") {
                        if (vNode.items.nodes.length > 1) {
                             if (vNode.value.oneOfChild.value == 1) {
                                  nChk++ ;
              }else if (vNode.nodes.item(i).className === "subform"){
                   if (vNode.nodes.item(i).name === "Door_Subform"){
                        countChk(vNode.nodes.item(i));
         }//endloop
    Hope this help!

  • Getting the name of the appliedAlternateLayout

    I am trying to solve an issue with exporting JPEG versions of InDesign pages.
    The exportFile command gets an error if there are alternate layouts since if you just tell it to output page 1, it doesn't know whether you mean page 1 of the first layout, or one of the other layouts.
    In the Export dialog box, you can specify "alternateLayoutName:pageNumber" i.e. "Horizontal Layout:1" .
    In order to supply this information I am trying to extract the name of the alternate layout from the current page, however that doesn't seem to be an accessible value in the DOM.
    curPage.appliedAlternateLayout returns a [section]
    and there does not appear to be an object curPage.appliedAlternateLayout.name
    Does anyone know of a way around this?
    James Haney

    James, to output page 1 of a document, you can use the index of a page of a document.
    You need not to use its name property and a string value for this.
    myPageToExport = app.documents[0].pages[0];
    will do the job.
    But how do you know where an alternate layout is starting and ending?
    You could check the Section collection of a document and look for the value of alternateLayoutLength.
    The name of an alternate layout is the value of the property alternateLayout of a specific Section…
    Here a code snippet, that could do the job for the index of every starting page of an alternate layout:
    var myDoc = app.documents[0];
    var mySections = myDoc.sections.everyItem().getElements();
    var myStartsOfAlternateLayouts = [];
    for(var n=0;n<mySections.length;n++){
        //It seems, that sometimes a new section could force the value of alternateLayout of a Section to an empty string
        //Could be a bug in CS6.
        //So we will ignore empty strings:
        if(mySections[n].alternateLayout !== ""){
            myStartsOfAlternateLayouts[mySections[n].alternateLayout] = mySections[n].pageStart.documentOffset;
    for(x in myStartsOfAlternateLayouts){
        //Results will show the names of the different alternate layouts:
        $.writeln(x);
        //Results will show the index numbers of the pages where the alternate layouts start:
        $.writeln(myStartsOfAlternateLayouts[x]);
    Note: Read the comments in the code.
    I found, that sometimes alternateLayout could yield an empty string.
    Could be a bug in CS6 where I tested this code.
    Uwe

  • I found the solution to a Mavericks bug on the Mail program. How can I share it? Several of my mail boxes stopped functioning properly when I updated to Mavericks. After long hours, I discovered that if I change the name of the mailbox, the content works.

    I found the solution to a Mavericks bug on the Mail program. How can I share it? Several of my mail boxes stopped functioning properly when I updated to Mavericks. The title of the mails stored in the mailbox appear, but the content was unavailable.
    After 4 long hours at the phone with the Apple staff unable to help me, I discovered that if I change the name of the mailbox, the contents of the mails stored there become available.
    Please, make this solution available to other people!

    You have found the the way to share it.   Include your problem and its solution in a forum post in the Mavericks forums.   Then mark you own post with a green solved star.
    Note.  You won't get any points for that; points are only awarded where you mark someone else's post as either helpful or solved.

  • Function Module that gives the names of the file in the Application Server.

    Hi Experts,
       Please give me a Function Module that gives the names of the file in the Application Server.
    Thanks,
    Debi.

    Hi,
    see these links
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/fa02b7493111d182b70000e829fbfe/content.htm
    http://abaplovers.blogspot.com/2008/05/function-module-sap-logged-in-users-to.html
    http://www.saptechies.com/abap-function-modules/
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/function-module-to-get-data-and-time-of-file-576751
    thanks
    karthik

  • Installed office for mac (trial version). now I got 2 excel files, which cannot be deleted. I googled the names of the sheets and found chinese websites I never visited. Are those dialers? How can I get rid of them? system is mac lion(with win 7 parallel)

    now I got 2 excel files, which cannot be deleted on my desktop. I can't open them, either. I googled the names of the sheets and found chinese websites I never visited. Are those dialers? How can I get rid of them? system is mac lion (with win 7 parallel)

    The people who make that stuff have their own forums you can also search/ask in:
    http://answers.microsoft.com/en-us/mac/forum

Maybe you are looking for