Request and session issues-how to remove a bean from a session

Hi
I am implementing copy and move functionality in my application. I need some info to complete that.
The copy functionality is like this.....From a summary page which consists a Datatable and checkbox...
I will select a checkbox beside as a copying reference..and click on next..
In the next page I will get a copying reference bean and a drop down select list box consists of 1-10, I will select some value and click on next. then in the next page, I will get selected no of rows of that copying reference. then when I click on finsh , it will add into database...
And the next page will open showing .....status of inserting into database..
the action method I am calling is....
public String saveCopyingRoutes()
log.info( "Into saveCopyingRoutes method" );
String returnStr = UIConstants.RETSTR_SUCCESS;
// : Get all the rows
// Read each row and insert each row into database under a particular
// gateway end point.
int numRows = table.getRows();
log.debug( "no of rows-->" + numRows );
for (int rowIndex=0;rowIndex<numRows;rowIndex++)
log.debug("value of rowIndex-->"+rowIndex);
RoutingEntry routingEntry = (RoutingEntry) FacesContext.getCurrentInstance()
.getExternalContext().getSessionMap().get( "RoutingEntry" );
try
// -Need to query using RoutingEntryMgerImpl() class
new RoutingEntryMgerImpl().addRoutingEntry( routingEntry );
message = " Verifying Copy sheet " + rowIndex + ".....\n"+
" Successfully verified datafill in copy sheet" rowIndex".....\n"+
"Adding copy sheet "+rowIndex+"to the database...\n"
+ " Successfully added copy sheet" rowIndex"to database.....";
messageList.add( message );
log.debug("*********************"+messageList.size());
log.debug("message----->"+message);
log.debug("*********************");
catch (NrsProvisionException pe)
catch (Exception e)
message = "Unsuccessfully added copy sheet "+rowIndex+"to the database";
//Show the corresponding error....
// Throwing generic exception ...?
e.printStackTrace();
log.info( "saveCopyingRoutes method return value: " + returnStr );
return returnStr;
now the bean is in session scope , let me know how to remove from the session, is there any better way to implement this functionality...

Read the instructions.

Similar Messages

  • How to remove a click from a sequence file mp4 or mp3, and make it only sequence left and right in GarageBand?

    How to remove a click from a sequence file mp4 or mp3, and make it only sequence left and right in GarageBand?

    "adrianTNT" <[email protected]> wrote in message
    news:e6aitv$hkm$[email protected]..
    >
    quote:
    Originally posted by:
    kglad
    > you're welcome. with your solution loading another mp3,
    are you sure it stops
    > the download of the first mp3?
    > Yes, it seems to work fine, it loads another sound in
    same sound (my_sound)
    > and it seems to replace loaded progress with the empty
    sound I gave and stops
    > previous loading.
    > I look at traffic icons on task bar and I see that there
    is no network traffic
    > after I click "stop" before this I could see continuous
    traffic while sound was
    > loading in background.
    Yeah, I remember someone posted that solution a long time
    ago. It seems if you load a file with the same name the cache
    doesn't
    know any better and adjusts the download size to the smaller
    one. Maybe it's a good way to do it! Could it be a way to remove an
    mp3 from someone's cache after it plays? hmmmm Will have to
    do more testing.
    tralfaz

  • How to remove HP ink from hands and fabrics

    How to remove HP ink from hands and fabrics
    Please note that the ink used by HP is a water based ink that will clean easily. Here’s how to remove ink stains from hands and fabric.
    NOTE: IMMEDIATELY rinse the stained area with COLD water, and then follow the appropriate instructions.
    To remove ink stains from hands:
    Wash hands with an abrasive (gritty) soap. Note: It may take several washings.
    To remove ink stains from white fabrics:
    If ink from an HP Inkjet print cartridge spills on white fabric, use chlorine bleach and cold water to remove the stain, but act quickly.
    CAUTION: Use only COLD water. Warm or hot water will "set" the color into the fabric.
    To remove ink stains from colored fabrics:
    Use sudsy ammonia—a dilute mixture of detergent and ammonia—and cold water. Act quickly and test on an inconspicuous area first.
    CAUTION: Use cold water. Warm or hot water will "set" the color into the fabric.
    WARNING: Do not mix ammonia and chlorine bleach; this creates a toxic gas!
    Although I work for HP, my post's and replies are my own opinion. I am not an official HP spokesperson.
    ****Please click the Kudos Thumbs up if you would like to say thanks****
    ****Please mark Accept As Solution if it solves your problem****

    This should be a sticky
    Although I work for HP, my post's and replies are my own opinion. I am not an official HP spokesperson.
    ****Please click the Kudos Thumbs up if you would like to say thanks****
    ****Please mark Accept As Solution if it solves your problem****

  • Caching issue - How ro remove cache from the portal iview

    Hi,
    I am facing problem of caching.In my application I am substituting one user(user 1) to some other user(user 2).Based on the substitution(latest substitute user 2),I should get the values for the User 2.
    But after substitution,I am getting the values for the user 1 and after some time(2/3 second) I am able to get all the values for the User 2.The application is working fine.But some how its retaing the previous values of the user 1.
    Can anyone please suggest me how to remove the cache from the iview.
    Regards
    -Sandip

    Hi Sandip,
    Enterprise Portal caching can be taken care or in a number of ways, all these are listed in the doc below:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/71d7b8dc-0701-0010-dfba-881dba1b5b95
    - Regards, Dibya

  • Somehow i have synced my photos from my area on to my ipod touch, and dont know how to remove the photos. Any help?

    Somehow i have synced my photos from my area on to my ipod touch, and dont know how to remove the photos. Any help?

    You need to unsync them.  If you uses the folder syncing method either remove them from your syncing folder or change which is you syncing folder.  Also see:
    iPhone, iPad and iPod touch: Syncing photos via iTunes

  • Any suggestions on how to remove an "aura" from around a selection?  I shoot pictures at rodeos.  To make the rider stand out, I select and mask the rider. Next I blur the background using Gaussian Blur filter.  This results in a noticeable aura around th

    Any suggestions on how to remove an "aura" from around a selection in an image?  I shoot pictures at rodeos.  To make the rider stand out, I create a mask around the rider and then blur the background with Gaussian Blur.  This results in a noticeable blur around the outside of the selection.  I have tried using Feathering as well as other Refine Edge Tools.  The only thing that works is to go around the edge with the Clone Tool.  This is time consuming and not totally successful.  So, my two big questions are: (1) Is there a better (simpler) way to avoid the aura? and (2) If not, is there a way to remove the aura that is simpler?? 
    Thanks in Advance,
    Art Schwartz

    Sorry, what with the long title I had neglected the body of the message and your statement
    The only thing that works is to go around the edge with the Clone Tool. This is time consuming and not totally successful.
    seems to answer my first question.
    Did you do that before or after blurring?
    Have you alternatively tried using Content Aware Fill?

  • WebDynpro Java: how to remove blank element from Table and Dropdown.

    Hi  Folks
    In a webdynpro application,
    I created a table and witten the below code to populate the table
         IPrivateDummyView.IFirst_TableElement First_Table_Element = null;
         First_Table_Element = wdContext.nodeFirst_Table().createFirst_TableElement();
         First_Table_Element.setF_Value("One");
         wdContext.nodeFirst_Table().addElement(First_Table_Element);
         First_Table_Element = wdContext.nodeFirst_Table().createFirst_TableElement();
         First_Table_Element.setF_Value("2");
         wdContext.nodeFirst_Table().addElement(First_Table_Element);
    As per the code, i got 2 row in the table.
    But , i have one Empty row on top of the table ,  how to get ride of this.
    i find the same problem happening with dropdown too, where i used DDBI, i populated a the content as mention, but i initial 2 row as blank and then i have my own elements ,as per my code.

    >
    > how to remove blank element from Table and Dropdown
    >
    Change selection property of related node to from 0..1 to 1..1 (mandatory)
    Re: DropdownByIndex and empty line (Thread: DropdownByIndex and empty line )
    Re: Can the empty selection be removed from element dropdownbykey(Thread: Can the empty selection be removed from element dropdownbykey )
    Edited by: Anagha Jawalekar on Nov 18, 2008 10:28 PM

  • How to remove an app from my printer

    How to remove an app from my hp5510 printer

    EdnaM,
    Below are a few instructions that should help you with your issue:
    Log into your ePrintCenter account at HP ePrintCenter .
    Click the Printers tab, and then click My Print Apps .
    Place your mouse over the Print App that you want to remove, and then click Remove .
    If you have any further question feel free to repost!!!! Hope all goes well!!!!
    If I have SOLVED your issue, please feel free to provide KUDOS and make sure you mark this thread as SOLUTION PROVIDED!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • How to remove corrupt image from iPhoto

    Somewhere in my photo library I have a photo that iPhoto really doesn't like! I want to know how to remove this image from my library, possibly by deleting it via Finder.
    When I scroll through my photos in iPhoto the software hangs momentarily, and then crashes completely, whenever it gets to this particular image. When I try to export my photos (for backup purposes) iPhoto always crashes when trying to export this same image.
    The problem has appeared with one of the recent updates to iPhoto, when I originally imported this image I could see and export the image just fine. The same issue is preventing me from migrating my photo library to the new Photos app - the import process that runs when I first launch Photos always crashes at the same point, presumably because of this same image file.
    I am unable to remove the image by deleting it via iPhoto because I can't get iPhoto to display the image without crashing, please can anyone suggest another way to get rid of it.

    I've been trying to post details from the crash report here, but the forum software tells me that the message contains 'an invalid character' - which character is invalid? Who knows...

  • How to remove available downloads from the list

    how to remove available downloads from the list without it resuming when i open itunes or check for available downloads?

    There is not a way to remove them from the list.  Just let them download, and then delete them from your library when they are done.

  • How to remove "open dns" from imac

    how to remove "open dns" from imac

    Unlock the Network preference pane, if necessary, by clicking the lock icon in the lower left corner and entering your password. Cllck Advanced, open the DNS tab, and delete the server addresses. Click OK and then Apply.

  • How to remove SD Card from the Card Reader slot - Satellite A100?

    Hi,
    Is there anyone to help me? I inserted a 64 MB SD card in the card reader slot of my Toshiba A100 model. It's the first time i have inserted the card. The card is inside the slot. I can not take it out! I don't have any idea how to remove the card from the card reader slot. I can see the contents of my SD card, can open the files too. But how to remove it out from the slot. Please help me giving your idea to remove the card out from the slot.
    Arjun

    Hi
    In my knowledge the SD card slot doesnt has a any additional helps like the PCMCIA slot to remove the card.
    You have to remove it simply. Try to grab the card and move it out. You can try to use the pair of tweezers. Maybe it helps

  • How to remove sd card from iMac

    hi how to remove sd card from imac ,thanks

    If your machine is in warranty, be careful not to do anything more that might damage it when removing it from the optical drive.  You might even be able to convince an authorized service technician to carefully remove it under warranty from the optical drive.  It is a design issue that lets people accidentally insert the SD card in the optical drive.   Of course if that's the only copy of your information on the SD card, be sure to let them know that, so they are extra careful not to damage it when removing it.

  • How to remove esclamation mark from itunes

    how to remove esclamation mark from itunes???

    See these...
    -> One computer using multiple iTunes Store authorizations
    -> About iTunes Store authorization and deauthorization

  • How to remove a node from nlb at runtime?

    hello,
    i need to temporally exclude a node from an nlb.
    May happen that a server is up and working but the web application i'm balancing is out of sinch with the same application in the others nodes.
    Eg. some static variables are not the same of the same static variables of other nodes, because of a timeout, a write error and so on but the server is still working.
    in this case i need to stop the server from nlb because the information in the web application is not in sinch with other nodes.
    I need to prevent users from being serverd from this out to date server, untill it will became updated, but i need to do this programmatically
    how can i do it?

    "DuoMi" <[email protected]> wrote in message
    news:gnojbf$2sg$[email protected]..
    > How to remove a node from XMLList
    >
    > I want remove the first node from XMLList
    >
    >
    > and how to get the combobox all values string:
    >
    > <data>
    > <value>2</value>
    > </date>
    > <data>
    > <value>5</value>
    > </date>
    > <data>
    > <value>8</value>
    > </date>
    >
    > I need a string whit value "2,5,8"
    >
    > thkan you.~
    I think something like
    comboBox.dataProvider..value.toString()
    will work.

Maybe you are looking for