How can I know from which page a user came??

Hi.
There is a way to know what was the previous page in the usrs browsers, but I don't know how.
Can you help me?
The problem is:
I have an error page that writes exception info on the screen:
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
exception.printStackTrace(pw);
String msg = sw.toString();
It works fine, and usualy in the msg I have all info about the page that the exception ocured in.
But when it is an SQL exception, I don't know what jsp page made that SQL call.
So I want to print the path of the page previous to the error page.
Thanks for Help.
Vadim.

Greetings,
There is a way to know what was the previous page in
the usrs browsers, but I don't know how.
Can you help me?Get the HTTP request header 'Referer':
<a href='<%= request.getHeader( "Referer" ) %>'>Return to main page</a>I hope this helps.
Thanks for Help.
Vadim.Regards,
Tony "Vee Schade" Cook

Similar Messages

  • How can I know in which Tables are the fields stored

    Hi,
    In transaction FSE3 Display Financial Version
    Statement Version, if I drilldown in details, I can
    see Item No, Chart of Acc, From Accountm To Account D,
    C.
    when I do a F1 on the fields, I can see that it is a
    structure. How can I know in which Tables are the
    fields store?

    Hi Ankit,
    There are no rules or guidelines for finding the table but i will share some of the tips used generally.........but i am not sure if we can do it for a tree structure..but try anyways....
    Double click on the structure name seen on the F1 pop up window...
    in the structure screen, try to analyse the field which is very important something like a key in that set of fields or do the same for the fields which we feel are more important,then click on the domain for that field....once in the domain..click on the "where used list for the domain" on the top...
    it will display a pop up -> select only "table" and then press "Tick/OK"..A list will be displayed with the data element and table name ..from this we need to find out the right one we need either by going for text of the table or going through each and every one
    It takes time but does the job.....
    Regards
    Byju

  • How can i find that which page is opened in other browser window

    How can i find that which page is opened in other browser window
    Can i restrict opening of a new instance of browser by end user.
    Thanks in advance.

    you can use Javascript functions/varibles.
    In any page you can insert a special form like this:
    <form name="myNameWindow">
    <input type="hidden" name="myName" value="Ivan_pag01">
    </form>
    and in the other reading that value.
    Obviusly you have to save a reference in a variable of the other window.
    This is possible only if:
    1) other page is in the same browser window but in an other frame
    2) you have generated the other page via an "window.open" function (or your page is generated from it via that function)
    -- Ivan

  • How can anyone know on which Xi server one is working ...

    Hi Folks,
    How can anyone know on which Xi server one is working i.e..whether it is DEV/TEST/PROD system....where we can find these tech details???
    Waiting for your responses...
    Cheers...
    Ram.

    hey all..
    i guess, i was unclear wit my question..
    i very well understand the transport of objects frm dev to prod..
    what i wanna knw is...,
    if i hav three diff systtems..i.e prod, dev, n quality..
    wit hittin the tcode: scc4, i get to knw the system id, name n short text..
    n now based on the short text, i identify my system details....(i.e it bein prod or dev)
    but if the short text is missin in the tcode mentioned, then do i hav any other method to knw which system is which Xi System? (prod, dev or qua )...
    regards,
    Ram

  • How can i send videoes which are not in camera roll via whatss app to others ?

    hi,
    I am going to know that how can i transfer video which are not in camera roll via whatss app to others ?
    thnaks in advanced.

    Where are the videos?
    If WhatsApp supports sending videos from the Camera Roll only and that is your only option, that is it.
    Contact WhatsApp. They have a website.

  • How to know to which page the user is going

    Hi! I want to know to which domain my user is going after leaving a certain page. I want to know this to differentiate if is moving to a page inside my site, if he's leaving or if he's closing the browser.
    Hope u can help me! Regards
    Raul

    If a user clicks a link on the page then you can tell that where is he/she heading,but if they type the address in the location bar,then you are out of luck.
    And this is a JavaScript/html related question( I think...*_*)
    Cheers
    Khalid

  • How do I find out which "page" the user was on

    I am using JAVA servlets and XSLT's to create a web service. I need to know how I can use the HTTPRequest that is sent to me to the server to find out, which "page" they were on when they clicked the login link.
    The login link appears on all "pages" and once they click it a loginServlet is activated an a login page is shown. I need to know which "page" they were on so I can take them back to it after login has completed.
    So take for example I am at http://localhost:8080/contact/ and then they clicked a hyperlink with value http://localhost:8080/login to call loginServlet. I know getPathInfo will give me the "/login" but how do i get that "/contact" so i can send them back to that page once the system has logged them in.
    Any help, suggestions, comments would be highly appreciated it. Thanks.

    Retrieve the "Referer" value from the requestHeader:
    String referer = request.getHeader("Referer");Notice the misspelling, you must spell it this way. BTW, check for nulls. I don't think there's any guarantee this value is set, although I've never run across a situation where it wasn't.

  • How can I know the number of concurrent users

    Dears,
    We have a sizing document from one of our vendors which is asking for the "Peak number of concurrent users in E-mail".
    How can we estimate that? is it something like 5% of Total # of Users?

    Hi,
    If your field symbol has been defined as an internal table :
    Use std describe as
    Data: l type i.
    describe <fs> lines l.
    'l' will contain the number of lines as needed.
    FYI
    The size of this storage area in a field symbols depends on the number of table lines which is not fixed, but determined dynamically at runtime.
    Regards,
    Amit

  • How can I recover from Windows login failure: User Profile Service failed the login

    I have Boot Camp installed on a separate partition on a MacBook Pro, late 2011 model. I have Mavericks installedd (10.9.1). I use, variously, both Parallels and VM Fusion to access the BootCamp installation of Windows 7.
    Except for having recently installed updates of both VMFusion and Parallels, I got this failure message when trying to login to Windows:: The User Profile Service failed the logon. User profile cannot be loaded.
    I had just been on Windows a few moments previously to access a business site that only accepts IE. Appreciate any useful insight on dealing with this issue without having to totally replace the BootCamp installation. A lot of the suggestions on Microsoft Windows repair sites are either incomprehensible or don't seem applicable.

    Same problem here. Windows 7 support gives several so-called fixes (including regedit tweaks, eliminating the blocked user account), but all require access to that partition. So far as I know, I have only one user, since this is my personal computer -- unless there is some sort of default "administrator" logon.
    Windows support says the problem might be caused by antivirus software running while we try to logon, but this problem has never happened to me before, and I have not made anti-virus changes (maybe AVG or Avast did so automatically)
    I tried to access regedit through Finder, but get a garbled text-edit with the message that regedit cannot be opened by DOS.
    So I wonder (a) is there a default admin logon? (b) Can we tinker with the settings inside Windows from Finder, or (c) how else can we get into Windows?
    My setup: Macbook Pro (Fall 2010), 10.6.8, boot camp, Windows 7.

  • How can I get to which group belongs users

    Can I write sql which get to which groups belongs users in Oracle Portal 3.0.9.

    Hi,
    select group_id from wwsec_flat$
    where person_id in (select id from wwsec_person$
    where user_name = '<user name>')
    Thanks,
    Sharmila

  • How can i know about the page breaks that occur in excel sheet during report gen

    Hello,
    I am trying to generate an Excel report with a large number of columns. and i am facing the problem of some of the columns not fitting into the page due to the page break. as a result, these columns are being printed at the end of the report. I would like to add the Row and Column headers to the remaining of the columns so that it is easy to recognise as to which table they belong to. i would like to know if there is any method to find out when the page break occurs in the excel sheet, along with the last printed column number, so that it would be easy for me to add the Row and Column headers before the next row/column is printed.
    Thank You
    Regards
    Tweetz.

    Hi Tweetz,
    I have tried to find a way to do what you are asking, but have been unsuccessful.  However, you can control where the page breaks occur by using the "New Report Page.vi".  You can call this VI after appending the table to the report, and specify the cell where you wish to insert a new page break (using the "position" or "name" elements of the "MS office parameters" input).  If you know the page size and you specify the column widths, you should be able to pick reasonable places to start a new page.
    I hope that helps!
    Devin K
    Systems Engineering - RTT & HIL

  • How can i know in which method i am?

    I would like to know ( for debugging reasons ) in which Method the execution code is!
    Like the printStackTrace() which indicates:
    - package
    - class
    - method
    - line
    at mypackage.myclass.mymethod4(MyClass.java:40)
    at mypackage.myclass.mymethod3(MyClass.java:30)
    at mypackage.myclass.mymethod2(MyClass.java:20)
    at mypackage.myclass.mymethod1(MyClass.java:10)
    at java.lang.Thread.run(Thread.java:484)
    Does anybody knows how to do this?
    Bye
    Emiliano

    This will return the calling class.method() of a class.
    public static String getCallingClassMethod() {
         try {
              Exception e = new Exception();
              // make a buffer to store the stack trace       
              java.io.ByteArrayOutputStream buffer = new java.io.ByteArrayOutputStream();
              java.io.PrintStream stackInfo = new java.io.PrintStream(buffer);
              e.printStackTrace(stackInfo);
              // create the tokenizer to get each line       
              java.util.StringTokenizer stackInfoParser =
                   new java.util.StringTokenizer(buffer.toString(), "\n");
              int n = 4;
              // *nix system only need 4 tokens windows has 2 extra
              if (System.getProperty("os.name").startsWith("Windows"))
                   n = 6;
              // loop through all the crap that comes before our calling method
              for (int i = 1; i < n ; i++){
                   stackInfoParser.nextToken();
              // get our calling class.method
              String returnString = stackInfoParser.nextToken().trim();
              // get rid of the garbage
              returnString = returnString.substring(returnString.indexOf(" ") + 1,
                   returnString.indexOf("("));
              return returnString;
         } catch (Exception e) {
         return "";
    }

  • How can i see, on which page my client commented in a shared PDF file via CC?

    Hello,
    i want to use the share function of CC to share a multipage PDF document with my client. Everytime he comments this PDF, the comments are not shown on the single pages, they are shown in a summary for the whole file. It is really hard to find the specific page for a single comment. Is there another way?
    Thanks in advance,
    Daniel

    I don't know if you solved this issue yet. But we have the same issue in the pass, and clean the log files under "\Synchronizer\resources\" folder seems to be a solution. Here is the thread talking about it.
    https://forums.adobe.com/thread/1426298?start=0&tstart=0

  • How can I know the username of a user that logged in?(Authorization)

    I have a problem with authorization. In our system, everyone could take some reports. But we must restrict the data that a user can see.
    So, I must know what is the username of the logged in user.
    I have tried :XDO_USER_NAME variable in SQL statement but it doesn't work.
    Is there any way to get the username of the logged in user.
    Thanks..
    Edited by: user10137960 on 16.Kas.2009 11:27
    Edited by: user10137960 on 16.Kas.2009 11:33
    Edited by: user10137960 on 16.Kas.2009 11:35

    Hi
    Needs to be lower case
    http://blogs.oracle.com/xmlpublisher/2007/04/whos_on_first.html
    Regards
    tim

  • Uswer exits: How can we know weathewr application is having user exits

    what is the t.code used to find weather user exits is having or not.

    u can use this program to find it.
    TABLES : TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA : FIELD1(30).
    DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS : P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA wa_tadir type tadir.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    endcase.

Maybe you are looking for

  • Exchange policy for 2nd return?

    I picked up the MBA 11" yesterday, base model since I've been eyeing it for some time, and the small foot print pulled me in. I've been to the Apple store a few times to compare both the 13 and 11,have  but you don't really get the feel for it until

  • Dreamweaver crashes on start up

    There are three common causes of Dreamweaver crashing on start up: Conflict with security program on Acer computers A corrupt Dreamweaver file cache The 8KB bug The following information describes how to handle each one. Acer incomaptibility There’s

  • OSB 10.3 connectivity to Database: Recommended approach?

    Hi OSB 10.3 doesnt yet provide JCA adapter framework to connect to database. In Oracle integration world, this is one of the foundational requirement. We understand that we can write and call a BPEL wrapper and fetch data using SOA suite DB adapter.

  • Error While creating Third Party order in VA01

    HI am trying to create Third Party order in VA01  in my sand box with material ( BANS item category Group)  getting error NOT POSSIBLE TO DETERIMINE A CONSUMPTION ACCOUNT in OBYC GBB  i tried to do some setting in VAX , VBR with valuation class 0001

  • Bug Report - Hang when run query and then click on connection

    SQL Developer hangs if you run a query in a SQL Worksheet, then while it's still running, right-click on the connection in the Connections window. It will come back again once the query finishes, but usually you want to open another sql worksheet whi