Can we preserve the session while navigating to PDF using sessionId

Hi,
I have a requirement like i am navigating to PDF page where we have few buttons on click of those links we trigger some application functionality in a different window.
I want to restore the session in the new window, any suggestion are welcome!
The thing i observed is while opening PDF we are loosing session because PDF file is not associated with browser and when clicking on PDf button it is opening entirely new browser window instead of child window of the parent window.
Can we restore the session using sessionId actually i can send the sessionId by appending it in URL using URL rewriting.
Thanks,
Mahendra
Edited by: mahendra13 on Feb 17, 2010 4:27 AM

In the connection tag of the server.xml give the server name as you want. which will be prefixed in the JSESSION ID
<CONNECTIONGROUP id="s" matchingip="default" servername="www.xyz.xom" defaultvs="test">

Similar Messages

  • Can we access the session scoped variable by simply using its name

    The Java EE 6 Tutorial contains a "Duke's Bookstore Case Study Example”. I could not understand following statements of this case study:
    *bookdetails.xhtml*
    {code}
    <h:outputText value="#{selected.title}"/>
    {code}
    *BookstoreBean.java*
    {code}
    public String details() {
    context()
    .getExternalContext()
    .getSessionMap()
    .put(
    "selected",
    getFeatured());
    return ("bookdetails");
    {code}
    I want to know can we access the session scoped variable in bookdetails.xhtml by simply using its name as done above?

    It is basic Expression Language (EL) functionality, it isn't even specific to JSF. And it isn't specific to the session scope either, you can put beans in any scope (page, request, session, application, flash, conversation, whatever custom scope you create) and reference it using EL by only its name. The thing that you have to take care of is that the bean lives in SOME scope, which can be achieved using JSF specific annotations or configuration files, through CDI or by manually putting the bean in a specific scope through Java code. It's flexible, which is the nature of the Java platform.

  • Can we control the top level navigation in portal from a java application

    Hello,
    I am having a scenario where User logged in to portal and assigned with 2 roles (HOME , ISA(Java application)). When user opened a form in ISA (Java application) and tried to enter the data in form and moved to another tab (e.g. HOME) in top level navigation.
    When user come back to ISA (Java application) TAB , we show the page where he left earlier. I would like to know if user click any other TAB in top level navigation (Role assigned to him) while working on a page in ISA(Java application) is there any way we can catch that event before he leaves from ISA (Java application JSP page) to other TAB?
    How can we control the top level navigation events in the portal from a java application .Since Top level navigation is seperate par file.
    Thanks,
    RN

    Dear Rajesh,
    Top Level and detailed navigation values comes with iteration in the respective par file.
    Please check the par file and based on the value (i.e tab name) selected, you can write your code.
    Best Regards
    Arun Jaiswal

  • I'm trying to record audio into my iPad2 using GarageBand and an iRig, but I can't monitor my tracks at the same time as recording, meaning if I lay down a drum track and attempt to record guitar, I can't hear the drums while recording. Thoughts?

    I'm trying to record audio into my iPad2 using GarageBand and an iRig, but I can't monitor my tracks at the same time as recording, meaning if I lay down a drum track and attempt to record guitar, I can't hear the drums while recording. Thoughts?

    Hi, I have this exact same problem. I haven't been using an iRig, just a cheap USB-jack cable. I managed to do this with the first cable I bought, but since it broke I've been unable to find a replacement that allows me to hear the drums while recording. DId you manage to get over this issue? If so I would really like to know how. Thanks and best wishes.

  • How can i change the font while im coding?

    How can i change the font while im coding? I am not talking about the final product and inserting fonts in my documet i am talking about when i am in the progress of coding I want to change the font so it is way more pleaseing to the eye when I am staring at it while coding? please do help and thanks!

    Editing the source is a bit of a pain because you'll have to redo it after every update.  It's better to write yourself a mini-extension that adds a new stylesheet -- that is also very simple to do.  Just follow these instructions: https://github.com/adobe/brackets/wiki/Customize-Your-Code-Font.
    - Peter

  • TS1702 I have an app that appears to need to be updated. I clicked to update three days ago. It has started to update and will not finish. How can I delete the app while its in the middle of updating?

    IPhone 5
    I have an app that appeared to need to be updated. I clicked to update three days ago. It has started to update and will not finish. How can I delete the app while its in the middle of updating?

    Locked on an update can mean a couple of different things. So there are a number of things to try, but start with these.
    If you have a "waiting" icon, try tapping on the icon and see if you can pause the update/download. Of it pauses, tap on it again and see if it will resume.
    Try holding down on the icon until all of the icons on the screen wiggle. If the X to delete pops up on the waiting/stalled app -  tap the X to delete the app. Tao,the home button and the apps will stop wiggling.
    You can also try this and see if the downloads will resume. Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Can we lock the reservation while entering GI ?

    Can we lock the reservation while entering GI (like the PO is locked while entering GR)?
    Steps that made a problem.
    1. User A enter MIGO and key GI ref. reservation. (Not save yet)
    2. User B enter MIGO and key GI ref. the same reservation.
    3. Both of them save the materail document.
    Then stock was double issued.
    The problem happens when the system was slow too. User A enter GI ref. reservation and save it. The system has not finished updating. User A cannot see the material document, so he thinks the update was unsuccessful and enters it again.
    I think if we can lock the reservation while entering GI, it will solved this problem.
    If you know how or have another idea, please suggest me.

    dbuser wrote:
    I am using the Oracle 10g and I have question related to "for Update" clause.
    We have the data warehouse db, so no foreign key constraint between parent and child.This is the mistake: you need the foreign key constraint. It is vital to have these in a data warehouse. You need as many constraints as possible: they give information to the optimizer, without which the optimizer has no chance of developing efficient execution plans. Remember that constraints are not only about data integrity, you need them for performance as well.
    John Watson
    Oracle Certified Master DBA
    http://skillbuilders.com

  • Why JSF can not get the session's var?

    I have set the session var in my managed-bean, in my jsf page I can use the <% session.getAttribute( "var" )%> to get the session var, and
    the JSF EL( #{ var } ) do so, but #{session.var} or #{sessionSCope.var} can't return the session var's value. I am using Resin3.1.1 and JSF1.2.
    Any one can help me, thanks.

    public class EnvSetting {
    private String skinFamily = "";
    private String lang = "en";
    public void setskinFamily(String skin)
    skinFamily = skin;
    if (skin.equals("Test1"))
    Locale lc= new Locale("ar", "JO","WINDOWS");
    Locale.setDefault(lc);
    setLang("ar");
    else
    Locale lc= new Locale("en", "UK","WINDOWS");
    Locale.setDefault(lc);
    setLang("en");
    public String getskinFamily()
    if (skinFamily.length() == 0)
    if (Locale.getDefault().getLanguage().equalsIgnoreCase("EN"))
    return "Test" ;
    else
    return "Test1" ;
    else
    return skinFamily;
    public void setLang(String l){
    lang = l;
    public String getLang(){
    return lang;
    Message was edited by:
    JavaIQ

  • My iphone4s can not update the apps while it could download the apps. It shows that the update can not access to itune store.

    My iphone4s can not update the apps while it could download the apps. It shows that the update can not access to itune store. I don't know how to deal with it...

    Many people (including me) are having the same problem at present. There are other threads in the message board with the same complaint.
    There is nothing you can do about it except wait for Apple to fix the problem.

  • How can i keep the session always live and active

    how can i keep the session live ? i tried to call getmessages every 30 seconds and nothing happens
    i need your help to tell me how to keep session live always
    please i need steps which can help

    i open session
    then i login
    then i change status to active
    then i call dialexternalnumber
    but i want to know how you keep the session active can you please send me the steps in details how you keep your session active ? but please in detailed steps
    many thanks for your great effort

  • HT4528 how do i stop my iphone 4 from doing random commands while talking on calls via the touch screen? Can i lock the screen while talking?

    how do i stop my iphone 4 from doing random commands while talking on calls via the touch screen? Can i lock the screen while talking?

    The iPhone has a proximity sensor located on the top of the phone near the earphone speaker that is supposed to automatically turn off the screen when it is close to your face while on a call, to prevent that very thing from happening.  If your phone isn't doing that, try cleaning your screen.  Also, if you put a screen protector on your phone made for a different model it may lack the cut-out that is supposed to keep it from blocking the sensor.  Try removing your screen protector to see if that helps.  If it does, get another screen protector.

  • OneNote recordings "We're sorry, we can't open the file because it is in use by another program."

    Constantly, OneNote breaks and screws up my recordings that are synced with my lectures. It is such a fragile process and very frustrating. As soon as I'm done recording, I press stop. When I test the recording, it says, "We're sorry, we can't open
    the file because it is in use by another program." I just recorded and then stopped it. If i close and reopen OneNote, it says, "oneNote is cleaning up from the last time it was open." And the recording still says it's in use by another program.
    I've even restarted the laptop and it still won't open. The only way i could salvage the file is if I copy and paste it into another folder, and then it will open through windows media player, but all the live syncing with my notes are gone. Where are these
    files stored? If I could save the sound and find the file/format that holds the syncing data again, I could work around this. They are no where to be found on my computer. Other forums give locations, but my folders are empty. Some other recordings work and
    sync nicely, but I have still lost many recordings to this error. However, if I play a file and then close it without stopping playback, that file, too, will now be unusable. It will be stuck as "We're sorry, we can't open..." no matter what i do
    and again i have to copy/paste it into a new folder and then move it back. I had the same problem on my last laptop. I record in Windows Media Audio 10 Professional at 192 kbs, 48 kHz, and stereo CBR. I need the high quality because the lecturer is too quiet.
    It seems to happen when I record long lectures, 45 min+. Shorter recordings tend to work fine.
    Please help, this would make note taking so much easier.

    A bit of a confusion on my part;
    Now we have created these REPORTS using Basic Crystal Report 10.5, which comes bundled with Visual Studio 2008 and .Net Framework 3.0. Now on our machines, we have never experienced any issues.
    Going by the above, you should have references to CR assemblies of version 10.5.3700 only. No other references.
    Now, looking at this paragraph:
    BUT on the DEV server (web server) which has .net Framework 3.0 and in its GAC its has CRYSTAL DLLs version 11.5 (required to create an Object of ReportClass and its related functions) ; sometimes we get the following error while exporting crystal report to pdf:
    I wonder what runtime was deployed to the server. E.g.; if you are using CR 10.5, your assemblies will be 10.5.3700 and you should be deploying the following runtime (depending on 32 bit / 64 bit, etc.):
    CRRedist2008_ia64.msi
    https://smpdl.sap-ag.de/~sapidp/012002523100006255262008E/CRRedist2008_ia64.zip
    CRRedist2008_x64.msi
    https://smpdl.sap-ag.de/~sapidp/012002523100006255272008E/CRRedist2008_x64.zip
    CRRedist2008_x86.msi
    https://smpdl.sap-ag.de/~sapidp/012002523100009351342008E/CRBasicVS2008_redist_x86.zip
    One way to check on what is actually loading is to use the [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] utility.
    - Ludek

  • What is the BADI  while SAVING purchase order using me22n?

    what is the BADI  while SAVING purchase order using me22n?
    while i will save purchase order through me22n, badi should be fire what is badi for that?
    regards,
    dushyant.

    Dushyant,
    Hopefully you know how to implement the BADI ME_PROCESS_PO_CUST now.
    The following are the codes that you can put in the method "Post".
      DATA: LW_HEADER        TYPE MEPOHEADER,
            LW_POSTED_HEADER TYPE MEPOHEADER,
            LW_VALID         TYPE MMPUR_BOOL,
            ITAB_ITEM        TYPE PURCHASE_ORDER_ITEMS,
            LW_ITEM          TYPE MEPOITEM,
            ITEM_INTERFACE   TYPE PURCHASE_ORDER_ITEM,
            ITAB_ACCT        TYPE PURCHASE_ORDER_ACCOUNTINGS,
            ACCT_INTERFACE   TYPE PURCHASE_ORDER_ACCOUNTING,
            LW_ACCT          TYPE MEPOACCOUNTING,
            LW_POSTED_ACCT   TYPE MEPOACCOUNTING,
            W_ACCT_CHANGED  TYPE C,
            W_GRANT_AMT      TYPE EKPO-NETWR,
            W_FINANCE_AMT    TYPE EKPO-NETWR,
            W_FLAG           TYPE C.
    Check if PO header data is valid
      CLEAR LW_VALID.
      CALL METHOD IM_HEADER->IS_VALID
        RECEIVING
          RE_VALID = LW_VALID.
      CHECK LW_VALID = 'X'.
    PO header data is valid
    Get the newly updated PO header data
      CLEAR LW_HEADER.
      CALL METHOD IM_HEADER->GET_DATA
        RECEIVING
          RE_DATA = LW_HEADER.
    Get the posted PO header data
      CLEAR LW_POSTED_HEADER.
      CALL METHOD IM_HEADER->GET_PERSISTENT_DATA
        IMPORTING
          EX_DATA = LW_POSTED_HEADER
        EXCEPTIONS
          NO_DATA = 1.
      IF SY-SUBRC <> 0.
        CLEAR LW_POSTED_HEADER.
      ENDIF.
    Get PO line items
      REFRESH ITAB_ITEM.
      CALL METHOD IM_HEADER->GET_ITEMS
        RECEIVING
          RE_ITEMS = ITAB_ITEM.
      LOOP AT ITAB_ITEM INTO ITEM_INTERFACE.
    Check if PO line item is valid
        CLEAR LW_VALID.
        CALL METHOD ITEM_INTERFACE-ITEM->IS_VALID
          RECEIVING
            RE_VALID = LW_VALID.
        IF LW_VALID <> 'X'.
    This PO line item is not valid
          CLEAR W_ACCT_CHANGED.
          EXIT.
        ENDIF.
        CLEAR LW_ITEM.
        CALL METHOD ITEM_INTERFACE-ITEM->GET_DATA
          RECEIVING
            RE_DATA = LW_ITEM.
    Get the account interface
        REFRESH ITAB_ACCT.
        CALL METHOD ITEM_INTERFACE-ITEM->GET_ACCOUNTINGS
          RECEIVING
            RE_ACCOUNTINGS = ITAB_ACCT.
        LOOP AT ITAB_ACCT INTO ACCT_INTERFACE.
          CLEAR LW_ACCT.
    Get the newly updated PO item data
          CALL METHOD ACCT_INTERFACE-ACCOUNTING->GET_DATA
            RECEIVING
              RE_DATA = LW_ACCT.
          CLEAR LW_POSTED_ACCT.
    Get the posted PO item data
          CALL METHOD ACCT_INTERFACE-ACCOUNTING->GET_PERSISTENT_DATA
            IMPORTING
              EX_DATA = LW_POSTED_ACCT
            EXCEPTIONS
              NO_DATA = 1.
          IF SY-SUBRC > 0.
            CLEAR LW_POSTED_ACCT.
          ENDIF.
          IF LW_ACCT-LOEKZ <> LW_POSTED_ACCT-LOEKZ OR
             LW_ACCT-KOSTL <> LW_POSTED_ACCT-KOSTL OR
             LW_ACCT-PRCTR <> LW_POSTED_ACCT-PRCTR OR
             LW_ACCT-PS_PSP_PNR <> LW_POSTED_ACCT-PS_PSP_PNR.
    Account assignment was changed
    We will force this PO to go through workflow
            W_ACCT_CHANGED = 'Y'.
          ENDIF.
        ENDLOOP.
      ENDLOOP.

  • How can I change the page size of a pdf so i can view it on my iphone more clearly?

    How can I change the page size of a pdf so i can view it on my iphone more clearly?

    I think there may be more to this question than you say.
    If your PDF page is say, 8 x 12 inches, and you found a way to scale it to 25%, changing it to 2 x 3 inch, shrinking everything on the page to quarter size - wouldn't it look exactly the same on the iPhone? It's just going to be the same as zooming.
    Or were you hoping for something more like in Word, where changing the page size keeps everything the same size and spreads it over more pages? That isn't something you can do.

  • How can I remove the blue background from my PDFs files

    How can I remove the blue background from my PDFs files

    Which tutorial?
    Answers are in your HTML and CSS code.  What is the link to your online test page?
    Nancy O.

Maybe you are looking for

  • How to optimize my Aperture/iPhoto shared Library configurations?

    Hi, Dear All: I just got a new Aperture 1.5 installed on my Mac Pro two days ago, and I decided to use the iPhoto Library as my Aperture's defualt vault, however, I also relocated my iPhoto Library from primary HD (Macintosh HD) to 2nd HD (Media HD).

  • Suggestions for disks from Power Mac G4 Tower?

    Hello fellow Mac users, I still have the complete disk set for my old Power Mac G4 desktop system (it died and I've moved on to two MacBook Pros). Any suggestions for what I should do with them? Thanks for the advice Regards, Vicki

  • Sales Office as part of Sales Area

    Hi SD Guru I have 2 Questions 1. We have Sales Office and it is mandaotry in SO creation. We want if defined Sales Office in Customer Master is matched with SO entry Sales Office then ONLY system should allow creation of sale order on that customer.

  • HT204053 how to I find my pictures

    how do I save my pictures and videos from my iphone to my icloud account and how do i view them?

  • T1 Sam Simulator Trace Tool Broken?

    I'm trying to use the SAM simulator and am having difficulty extracting a trace. I followed the readme instructions and everything boots up fine until I get to this point: stop mod load analyzer rstracer.so stop: mod load analyzer rstracer.so dlopen: