How to reference clients last page hit

I am wondering if in the session or request object that there is a way to indentify the clients last page that they were accessing.
thanks in advance

I have a similar problem and I solved it using
request.getHeader("referer")
as you say here and I use it and it is ok, but now I have another problem.
I have a form where the user can enter some search criteria. This form returns a list of results.
The list of results that the servlet sends back to the client has many results, so I use paging, this is, I add two links "next" and "previous" where I send all the search parameters and the offset to know how many results has the user seen.
As I want to go back to the "process" that called the form I have to saved as a request attribute the original referrer. So I also included in the parameters one called
referrer=<%=request.getAttribute("referrer")%>
but when I debbug the code I see that this parameter is lost and the value of the parameter is divided. I give you an example
referrer=http://sys40:8080/WM/servletAdm?idMenu=HIST
and the parameter that has the servlet is
http://sys40:8080/WM/servletAdm?idMenu
instead of
referrer
Am I doing something wrong?
I solved this problem doing the following
private String armarReferrer(HttpServletRequest request) {
Enumeration paramNames = request.getParameterNames();
while(paramNames.hasMoreElements()) {
String paramName = (String)paramNames.nextElement();
if(paramName.startsWith("http://"))
return paramName + "=" + request.getParameter(paramName);
return "";
But I don't think this is the best way to do this
Any idea? Thanks

Similar Messages

  • How to get the last page  SAP Script form

    How to get the last page  SAP Script form.
    I want to print a specific information in the last page of SAP form (Script). Please tell me how to get the last page number.
    Regards

    Hi
    You have to check the system variable &NEXTPAGE&, if it's 0 it means you're in the last page.
    From SAP Help:
    This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .
    Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.
    /: IF &NEXTPAGE& = '0'
       Last page
    /: ENDIF
    Max

  • How to create a last page

    Hello all.
    I am creating an adobe print form where the signature area should be shown at the bottom of the last page only.
    I am using Adobe LiveCycle Designer 8.1.
    Here are the steps I did so far:
    1. The master page contain the logo at the top of it. (Outside of the content area)
    2. The master page contain the page number at the bottom. (Outside of the content area)
    That way, the logo and the page number are shown on each pages.
    3. The design View, contain several subforms where the information is displayed.
    Now I need to know how I can create a Subform containing the signature box that will be displayed only at the bottom of the last page.
    If possible, I would like to avoid to reduce the content area to plug the signature box.
    So, if there is only one page, the signature box will be displayed at the bottom of the page before the page number and after the data from the design vew.
    If there is more than one page, the signature box will be displayed only at the bottom of the last page.
    I am new in the Adobe Form, so if possible, extensive explaination would be highly appreciated.
    Regards
    dstj

    Hello everyone.
    For everybody benefit, I do have a solution. I am not saying that it is the right solution but it did work for me.
    So, here it is:
    1. I had to create another master page (page 2)
    2. I had to copy the information of the master page (page 1) that I want to have copied on the second page. ( Logo, page numbet etc.)
    3. I created a subform containing the information that needs to be displayed on the last page only
    4. I selected the new master page (page 2), when to the object tab, pagination subtab and select the "last page (in page set)" option at the placement field.
    5. I selected the Master Page from the hiererchy tab, into the object tab, I selected the page set tab and in the printing field, I selected "Print on Front Side Only".
    I hope that can help somebody else.
    Regards
    dstj

  • How to set multiple Last page placement in a page set

    Problem statement
    Form with the 4 subforms named A to D. A turns B on or off, D is only visible when printing.
    When viewing the form interactively
    I need the following order (number in brackets indicates columns):
    When printing the form I need the following order:
    A (2)
    C (2)
    A (2)
    C (2)
    A(2)
    B(1)
    C(2)
    A(2)
    C(2)
    D(1)
    I can do this just fine with some fancy scripting.
    However, the problem is that on the last page must appear a box in the lower right hand corner.
    This must appear in the same place no matter which is the last page.
    As you see above, sometimes the subform C is the last page and sometimes D.
    Of course I have two master pages, MasterTWoColumn and MasterOneColumn and they are applied to the appropriate subforms.
    I can create another master page and name it MasterTwoColumn-Last and set the pagination so that the placement is Last page (in Page Set).
    On this last master page I put my box and adjust the content areas to allow for it. This works perfectly when viewing and printing subforms A to C.
    However, when I need to have subform D as the last page displayed, I really need another Last Master page so that I can adjust the content area to show the box on the last page (which only has one column).
    But how to turn off the MasterTwoColumn-Last master page and turn on the MasterOneColumn-Last ?
    Something to do with Page Sets perhaps???

    This looks very helpful, thanks Niall.  This seems like the right track for me to solve my problem.
    However it does not quite work when the page layout is two columns.
    I actually need to detect when the last subform C is being displayed in the left hand column, then add sufficient space to force it to show in the right hand column (following your suggestion of a spacer subform that has its size set dynamically).
    Since the form is flowed, I understand that I have to use xfa.layout.x(this) , instead of this.x. This is ok if I can just get an actual number......
    In my tests, I have been unable to discover what is the layout.x value of the spacer form. When using the
         console.println("x = " + xfa.layout.x(this));
    it always shows me a value of zero (0).
       I have tried lots of other printlns to show the x value up the tree (this.parent.x, this.parent.parent.x, etc) and it always gives me a zero.
    My spacer form is the following relationship to the form object.
         form.printSubForm.footerSubForm.spacerSubform.
    console.println("x = " + xfa.layout.x(this));
    console.println("parent.x frm 0 = " + xfa.layout.x(this.parent, "pt", 0));
    console.println("parent.x frm 1= " + xfa.layout.x(this.parent, "pt", 1));
    console.println("parent.parent.x frm 0 = " + xfa.layout.x(this.parent.parent, "pt", 0));
    console.println("parent.parent.x frm 1 = " + xfa.layout.x(this.parent.parent, "pt", 1));
    console.println("parent.parent.parent.x frm 0 = " + xfa.layout.x(this.parent.parent.parent, "pt", 0));
    console.println("parent.parent.parent.x frm 1 = " + xfa.layout.x(this.parent.parent.parent, "pt", 1));
    Anything else I could try?

  • How to decide the last page in smartforms

    Hi experts,
    I want to display a signature block only in the last page, can anybody tells me the perfect way to decide when it's the last page?
    Now I'm using a window with the check EVENT "Only Before End of Main Window", a flag is set in this window, and then use another window for signature block with the condition of flag is on.
    This method is not working perfectly, sometimes it works fine, sometimes not.
    Please let me know how will you do this, thank you
    Best Regards
    Raymond

    Hi Raymond,
    Try this logic!!!!
    I hope you have used table in main window to  display items. Just after the table in your main window, create a program line and set a variable(let say "x').
    Cretae  a separate window to display the signature. In the signature window use a text element to display the required value. Go to conditions tab of text element and set the condition (i.e. check your variable value which you have assignes before) and accordingly your text will get printed.
    Hope this will help you to resolve the issue & close the thread.
    Do appreciate if found useful.
    BR,
    Vinit

  • How to find out last page in scripts

    hi all,
    i have a problem in SAP scripts.
    if pages increment is dynamic then how to write data in the last page of footer window .
    Thanks & Regards,
    Hari Krishna.K

    Hi...
    Write this code.
    /: IF &NEXTPAGE& EQ 0.
    Last page
    /:ENDIF.
    Regards,
    Suresh......

  • How to Indentify the last page of output

    Hi All,
    I'm customizing the AR Invoice Report using XML Publisher. This report output can have more than one invoice.
    If an invoice has more lines and output is more than one page, I have to print the following information only on the last page of an invoice.
    1. Printing Remittance information at the bottom of the last page
    2. Invoice totals only on the last page of an Invoice.
    3. Printer marks to indicate the last page. Last page will have 3 small lines and all other pages will have 2 lines.
    To be more clear, if an invoice has 25 lines and first page can print 20 lines and the second page 5 lines. The remittance information and totals have to be printed on the second page. The first page has to have blank space at the same position.
    I need not to print an additional last page.
    I have page break after each invoice so that the page number is reset.
    Is there a way to identify the last page of in the report? I have found out that we can access the page number using the tag <?fo:page-number?>. However I could not find anything to identify the number of pages or the last page.
    Please let me know if you have any suggestion regarding this. It will be very helpful.
    Regards,
    Vijay

    Vijay,
    you need not check for the last page of the output. Pl go through 'Last Page Only Content' secton on 2-48 of XML Pub guide 5.6.1.
    I had very similar requirements and i achieved it by following the above info. One thing we should be careful of is: When we make some change in the content of first page, we should do those changes in the last page if the same content exists in the last page!!
    Hope it helps.
    Venkatesh N

  • How to create a 'Last Page Viewed' button

    I would like to create a last page viewed button which can be placed at the footer of each page of a document.  I currently write user manuals running into hundreds of pages which all contain hyperlinks at various points.  For example, a list of drawings when clicked will jump to whichever drawing has been selected. In this case I need to provide the user with a method of jumping back to the original list.  As this drawing may also have a link from elsewhere in the manual  the button should take the user to the last viewed page rather than any specific location.
    I hope this makes sense, any suggestions appreciated.
    Trev
    Currently using Acrobat XI Pro and Win 7

    This has nothing to do with HTML.
    In Form Edit mode, create your button on the first page, then go to its
    Properties, Actions tab, and add a new Mouse Up action with the "Execute a
    menu item" command. From the list that pops up select "View>Page
    Navigation>Previous View". Set the button's caption and other properties
    and then exit the Properties dialog. Now right-click the button and select
    "Duplicate Across Pages". This will allow you to create identical copies of
    this button on all the pages in the file.

  • How to reference a specific page of indesign file with xml

    Hi,
    I have a project that will produce many indesign files and what I want to do is use xml to build them.
    The main issue is that one of the source files will be in indesign.
    So what I need to find out is how do you specify attributes for page 2 of an indesign file in an xml data format.
    Thanks in advance,

    String s = "Less than 20";
    while(s.length() < 20) {
         s += " ";
    System.out.println(s + " " + s.length());Mark

  • How to reference the total pages in a the after-report trigger

    I need to call a procedure in my after report trigger, and send the total number of pages as a parameter. However, a bind reference only applies to columns or parameters.
    I have the total pages displayed on my report, I just can't reference that field in my trigger.
    Does anyone have any ideas?
    Here is a link to my ultimate goal.
    Telling Form the number of pages in a report

    If any body is curious, I found a work around in Metalink that is working for me now.
    Search for Doc ID 130432.1

  • How to make a last page in Smart Forms

    Hi,
    I'm using 2 pages in my form, the first one (PAGE1) has a main window and prints out a table. The "next page" goes to PAGE1 since i dont know how many results i get.
    Then I have a second page (PAGE2) without a main window, that prints out a text-module containing terms & conditions.
    The problem is that when i run it, only PAGE1 is displayed.
    How can i call PAGE2?

    Thank you so much Sasi, that solved it.
    I was going nuts about this.
    Best regards
    BTW: Right now there seem to be no way of rewarding points to you. Those options are missing on my screen.

  • How to supress Last Page in a Script

    Hi
    In a script I have three pages First Next and Last, my requirement doesn't’t need Last page which contains the summary. If I delete Last page with in the script, the output displays with two pages where in the first page contains all the data which I require and the next page shows the fields other than main window [don’t know why it is triggering].
    If i include the Last page with in the script with a blank new window in that, my output displays normally with a blank page at the end.
    Will any one help me how to suppress the ‘Last’ page in the scripts.
    Am working on Cheques ‘F110_PRENUM_CHCK’ and the print program is ‘RFFOUS_C’ where I want to suppress the ‘Summary’ window in the Last page. Here i don't want to modify the original program.
    Thanx
    Message was edited by:
            Shinoy N

    Hi Shinoy,
    we have the same requirement as you mentioned. We have to delete the last page ( with summary and void check ) . I deleted the last page ...eventhough the void check in the last page is reflecting.
    Please do let me know, how to delete the last page.
    Regards,

  • How to print a field on the last page of Smartform?

    HI FRIENDS,
    I NEED TO PRINT ONLY ONE FIELD IN LAST PAGE OF FORM SMARTFORM
    HOW DO I CHECK last page. I tried WITH THE FIELDS OF TABLE
    SYSF BUT NOT worked.
    Thank you.
    ROGERIO VAZ

    Hi,
    Goto the conditions tab of that window and enable the check box for Only after the end of main window.
    This will surely print your field in the last page.
    try this and get back to me if any issues.
    Regards,
    Anand.

  • How to print a field on the last page of Smartform with more  of 2 pages?

    HI FRIENDS,
    I NEED TO PRINT ONLY ONE FIELD IN LAST PAGE OF FORM SMARTFORM
    HOW DO I CHECK last page. I tried WITH THE FIELDS OF TABLE
    SFSY BUT NOT worked.      
    The form has  more of  2 pages.
    Thank you.
    ROGERIO VAZ

    Hi ,
    You dont have to hard code anything to achieve this functionality,
    just create a window and in that window define a text element to print
    that variable.In the conditions tab of that window check the check box
    "only after end of main window".i think you might have used a main window,
    so irrespective of the no of pages the smartform prints,it always displays that
    field in the last page of the smartform.
    regards,
    srikanth.

  • How to identify last page of a group

    Hi reports gurus!
    I'm trying to have report of employee(table emp) group by department(dept). I want to have 5 employees per page and per departement. A department can have 10 employees. So we'll have 2 pages for this department.For Each page a want to have sum of salary. Only at the last page of a department i want to have the sum of salary per page and also total of salary for the current department.
    So i want to know how to identify the last page of departement in order put only on this page the sum of salary for the departement?
    PLZ help is't very very important.

    Repeated masterpages use the same logic as any other repeated object - they have instance numbers.
    To address the second instance you can use an expression like.
    xfa.resolveNode("form1.masterpage[1].subform").presence = "hidden";
    If you're not sure about the correct SOM expression you can use a small script for testing.
    Put a textfield into the subform you want control.
    Add this script into its calculate event.
    this.rawValue = this.parent.somExpression;
    If you preview the form in Designer you'll see the SOM expression of the text fields parent, which is the subform.
    Copy it and put it into the script to hide the subform.

Maybe you are looking for

  • How can I access my iphone from iphoto or image capture?

    Hello all, I want to import my photos from my iphone (so that i free up the memory) but couldn't do it. When I go on to iPhoto the iPhone doesn't show on my device list and the same happened when I tried image capture. Am I missing something here? Is

  • Letter of credit reports

    Hi, Is there any standard report which gives me the details of LC value,  assigned balance and open value. who is the ship to party and valid from and valid to. Thanks in Advance, Raghava

  • Mail Issue in Solaris 10

    Hi, I wanted to send mails from my solaris box. Below is the step i used # svcs | grep mail # svcadm enable smtp # svcs | grep mail online 14:24:58 svc:/network/smtp:sendmail # mail -s "HELLO" [email protected] Nothing happens after this... i tried w

  • Unable to select a file

    I am not sure what I am doing wrong, but when I create a Word file and then save it in documents, when I go to select it to email it to someone, it will not let me select the file. Does anyone no what I am doing wrong? Thanks, Randy

  • Query Regarding multiselect list

    Hi, I have a multiselect list having the names of columns of one of the table say "example" table. I want to select only those columns from the "example " table which the user has chosen from the multiselect list. eg: the multiselect list has the fol