I don't want it to look up a new SessionBean

I have a JSP page like this:
addcd.jsp //this page is called addcd.jsp
<%!         // note that these codes are inside the declarations
   private CDAdder cdadder = null;
   public void jspInit() {
      try {
         InitialContext ic = new InitialContext();
         Object objRef = ic.lookup("CDAdderBean"); //this is a stateful bean
        CDAdderHome home = (CDAdderHome)PortableRemoteObject.narrow(objRef, CDAdderHome.class);
         cdadder = home.create();
      } catch (RemoteException ex) {
            System.out.println("Remote Exception:"+ ex.getMessage());
      } catch (CreateException ex) {
            System.out.println("Create Exception:"+ ex.getMessage());
      } catch (NamingException ex) {
            System.out.println("Unable to lookup home: " + ex.getMessage());
   public void jspDestroy() {   
         cdadder = null;
%>
<form method="post" action="addtrack.jsp">
</form>
...................................There is a <form> in this page and inside the form, there is a submit button. As you will guess, clicking the submit button will bring you to the addtrack.jsp page.
and at the end of addtrack.jsp page, I got a statement which will immediately bring you back to the addcd.jsp
addtrack.jsp
<%
response.sendRedirect("addcd.jsp");
%>
.....................The problem that I am encountering is that, when addtrack.jsp returns to the addcd.jsp. A NEW SessionBean was looked up again, it seems to think that it's a new session when addtrack.jsp redirected back to addcd.jsp.
How can I let it know it's actually still in the same session?
Please help me to solve this problem.
Any advice would be very much appreciated.
Many thanks to you all.

Y not pass a parameter to addtrack.jsp and return it back and in the jspInit check that the look up is done only if the condition does not exist.

Similar Messages

  • Can I universally change the title styles in my iMovie? I don't want to retype everything in the new style!

    Can I universally change the title styles in my iMovie? They're all set in "Lower Third" and I need to change all of them to "Gradient White" and I don't want to retype everything in the new style! It'll take forever, as I have many titles in this movie.

    Interesting.  http://help.apple.com/imovie/mac/10.0/#mov9c5e9641f  describes how to change a title.  I tried selecting 2 titles then chaging the style but it didn't work for either.  So it seems the answer is no (though it should be yes).
    Geoff.

  • HT4927 Are there ways to only upload certain photos from my iphoto backup? It is really big and I don't want all the photos on my new computer.

    Are there ways to only upload certain photos from my iphoto backup? It is really big and I don't want all the photos on my new computer.

    There is a way to find and recover individual photos from a Time Machine backup. 
    1 - dowload and launch  Find Any File.
    2 - select the Time Machine hard drive in FAF's Find Items menu.
    3 - enter the full file name of the photo you want to recover into FAF and use the Find button.
    NOTE: it will take a while for FAF to retrieve and display the results of the search due to the nature of how TM makes its backups. 30 seconds or so is normal.
    4 - select the file in the Masters folder and use the Space bar to verify it's the one you want with Quickview.
    5 - drag the file from the FAF window to your Desktop.
    6 - repeat for each photo you need to restore.
    OT

  • I have not upgraded to Mountain Lion yet, have 3 major apps (acrobatpro) and adobe image ready, and apple works that is not compatible, does anyone know how long snow leopard will be supported. Don't want to upgrade until I purchase new iMac next year.

    I have not upgraded to Mountain Lion yet, have 3 major apps (acrobatpro) and adobe image ready, and apple works that is not compatible, does anyone know how long snow leopard will be supported. Don't want to upgrade until I purchase new iMac next year.

    Consider running your Adobe and AppleWorks software in Snow Leopard (with Rosetta) installed in Parallels in Lion or Mt. Lion:
                                  [click on image to enlarge]
    Full Snow Leopard installation instructions here:
    http://forums.macrumors.com/showthread.php?t=1365439

  • I have 2 Apple IDs.  I also have a new laptop.  I have tons of music on my old laptop.  I want to transfer the music from my old laptop to my new laptop, but I don't want the music actually on my new computer.  Is there a way to have the music in iCloud?

    I am wanting to have my music available to me, but not actually on the new laptop (like my iPhone is set up to do).  I suppose I am wanting to know if I can transfer, or authorize my new laptop to have all of my music in iCloud, but not actually in iTunes on the laptop?  I want it available to me, but I have over 7000 songs and I don't want to use all the room on my new laptop.  Can someone please help?

    iTunes match - http://www.apple.com/itunes/itunes-match/ - see FAQ at end too
    http://arstechnica.com/apple/2011/11/itunes-match-your-questions-answered/
    http://ipod.about.com/od/UsingiOS5/a/Itunes-Match-Frequently-Asked-Questions.htm
    http://forums.macrumors.com/showthread.php?t=1277415 - deleting items from your computer but saving them in iCloud.  Yes, but risky.

  • Don't want all my music on my new iPad.

    I don't want my new iPad to upload, (in iTunes,) my complete music library. I only want it to do the folders I want. I have it set to manual, but it still put all my music that is in MUSIC on it. Thanks for your help in advance!

    Have you considered using the Sync Only Checked Songs and Videos in the Summary Tab of iTunes? You can choose the only the albums that you want to sync in the Music Tab of iTunes.

  • I don't want links to open in a new tab or window.

    On any website with links (especially reddit), EVERY time I click a link, it opens in a new tab or window.
    I do not wan't this.
    I just want the link to open in the same tab I'm using.

    Hello,
    Please see the articles:
    * http://kb.mozillazine.org/Browser.link.open_newwindow
    * http://kb.mozillazine.org/Browser.link.open_newwindow.restriction
    You can check your '''about:config''' page to see if maybe an extension or something modified those preferences.
    In order to change your Firefox Configuration please do the following steps:
    # In the [[Location bar autocomplete|Location bar]], type '''about:config''' and press '''Enter'''. The about:config "''This might void your warranty!''" warning page may appear.
    # Click '''I'll be careful, I promise!''' to continue to the about:config page.

  • Don't want to notify all admins of new unassigned tickets

    You can see if some ticket rules to auto assign tickets but, by default, I think the system is set up to notify all admins when a ticket is created.  Under Help Desk Settings you can modify the ticket alerts.  I think that would be a less than optimal set up.

    I work for an IT support company. We have installed SpiceWorks helpdesk at a customers site. There are 4 admins - 2 of which are at the customers site, and the other 2 are myself and a colleague.
    At the moment, when a new ticket is opened, ALL admins get an email notification, but this is not ideal. We (the 2 offsite people) need to be admins, but I only want us to be notified when a ticket gets assigned to either of us.
    How do we configure SpiceWorks for this?
    Kind regards
    Chris
    This topic first appeared in the Spiceworks Community

  • I have just discovered that my Epson printer is not compatible with my new iPad 2.  Does anyone know of a way around this as I don't want to have to purchase a new printer just for my iPad?  Is Apple working on a solution for this?  Am very disappointed

    My Epson Artisan 610 printer will not work with my new iPad 2.  Not AirPrint compatible.  Only certain HP printers work.  Are there any solutions to this other than buying an HP printer?

    Epson iPrint doesn't allow printing directly from something like Photos, you have to call up iPrint and THEN select Photos, but it does work and very well.  For my Epson Artisan 725, I had it print a photo, best quality, on 4x6 Premium Photo Paper, and it DID automatically select the right "tray" with my photo paper.
    Thanks for posting this suggestion.
    This was SUPPOSE to be replying to the following:
    app store epson iprint version 2.0 lets you print websites, photos, and more.

  • I don't want to have iCloud, but the new iTunes is basically requiring me to. Is there a way around it? I just bought a ton of music and it won't download unless I have iCloud.

    HELLLPPPP

    Hello Paige261
    You should have the option to turn off the passcode to not have one. If you do not have that option, then I would ask if your iPhone was giving to you by work, as your work may have setup a profile to require a passcode. To turn off you the passcode, go to Settings > Passcode and you should see a blue button that says Turn Passcode Off.
    Use a passcode with data protection
    http://help.apple.com/iphone/8/#/iph14a867ae
    Regards,
    -Norm G.

  • Need to change email on Apple ID and don't want to lose all my purchases!

    I am trying to get iCloud set up but have an issue with my apple ID.  Somehow I managed to get two separate IDs.  My original ID, which has all my itunes etc on it is associated with my old email which used to forward to my current email, but no longer.  Presumably, when I realized the emails were no longer being forwarded, I clearly messed up and made a NEW id with my new email account.  In order to verify my apple ID for icloud, they want to send an email to the address that no longer exists!  I don't want to synch everything to the new email account because there's nothing there.  Is there a way to get everything onto my new email--either cancel it and start fresh or link the accounts?  Any suggestions would be very much appreciated.

    As I said,
    If they are still available from the App store you can redownload them by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • I dropped my Ipod nano's Apple Earpods into a bowl of milk for about 5 seconds. Will they be ok as I don't want to pay for new ones?

    I have an Ipod nano 7th gen and unfortunately I dropped the Earpods into a bowl of milk for about 5 seconds. I can't tell if the sound quality has decreased but will they be ok because I don't want to pay more money for new ones?

    No way to tell...  You should not use them for a few days and leave them a warm well-ventilated location.  After that, if they seem to be working fine, you are probably OK.

  • I have two iPads and giving one to my grandson. Using my Apple id for both, can we use different passwords to access our "own" apps. Also I don't want the downloaded App to go to both iPads. Been looking for hours for an explanation! Thanks for any help.

    I have two iPads and giving 1st gen. to my grandson. Using my Apple idI for both... can we use different passwords to access our "own" apps. Also I don't want the downloaded App to go to both iPads. Been looking for hours for an explanation! Thanks for any help.

    Look at this link.
    Giving your former iPad to a spouse or family member: the quick guide
    http://www.tuaw.com/2012/03/17/giving-your-former-ipad-to-a-spouse-or-family-mem ber-the-quick/
    How to Share a Family iPad
    http://www.macworld.com/article/1163347/how_to_share_a_family_ipad.html
    Using iPhone, iPad, or iPod with multiple computers
    http://support.apple.com/kb/ht1202
    iOS & iCloud Tips: Sharing an Apple ID With Your Family
    http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/
    How To Best Use and Share Apple IDs across iPhones, iPads and iPods
    http://www.nerdsonsite.com/blog/2012/06/07/help-im-appleid-confused/
     Cheers, Tom

  • How do i find a recent backup from on icloud. i don't want to restore on my iphone, just view on my Pc and keep as file. looking for pics and video i recorded thanks

    How do i find a recent backup from on icloud. i don't want to restore on my iphone, just view on my Pc and keep as file. looking for pics and video i recorded thanks

    The password is set on the WiFi router providing the service, by the owner of the network to prevent unwanted "guests" accessing the network.  The only way to know it is to ask the owner permission to use the network.  Otherwise, you  have to find a free WiFi hotspot that doesn't require a password.

  • Looking for a FREE malay / english bi directional dictionary for my mac book, haven't registered my apple id cause don't want to put my credit card number, so must be from other place than iTunes

    looking for a FREE english to malay and malay to english (bidirectional) dictionary (kamus) to dowload to my mac book for use off line. i don't want to put my credit card number in my aplle id profile, so looks like any free app in i tunes is out for me. Any body know of a good dictionary, easy to down load, no fuss or gimmiks (no free trials etc) or even a free and good malay language course... I've tried serching by google and on cnet but can't seem to find anything straight foward that will download......as you probably have guessed by now, i'm definetly no computer geek, just an old fella trying to use some of this new fangled technology, so hope somebody can suggest something plain and simple....thanks to all

    http://translate.google.com
    or
    http://kamus.lamanmini.com/
    http://www.malayenglishdictionary.com/en/dictionary-malay-english
    http://www.stars21.com/dictionary/English-Malay_dictionary.html

Maybe you are looking for