Using Session Objects - effective or is there better ways?

Hi Guys,
I am currently working with a j2EE application which is heavily configured to particular users details. Additionally it hosts a customised Content Management system, which allow dynamic content to be displayed.
It asks a series of questions, they next set of question to show are dependent on the users selected choice. e.g.
1) what is your type of request (drop down menu)
- New User (if selected show question 22)
- Delete user (if selected show question 5)
I am heavily making use of Seesion variables to store what the user has answered, Additionall functionality allows the user to go back a question, so all possible values must be stored.
Is there a more effective way of handling this, I think having multiple session variables may have some draw-backs?
thanks
Manj

The Time Capsule (TC) can have its wireless network extended by another TC, an 802.1n AirPort Extreme Base Station (AEBSn), or 802.11n AirPort Express Base Station (AXn).
If your TC is a simultaneous dual-band version, only another TC or AEBSn will be able to extend both radios. The AXn can only support one radio (2.4 or 5 GHz) at a time.

Similar Messages

  • When using an external (ergonomic mouse) is there any way to get the wheel to scroll one full page at a time?

    When using an external (ergonomic mouse) is there any way to get the wheel to scroll one full page at a time? Much appreciated.

    I can't use the keyboard to scroll. I need to keep my hand on the mouse, otherwise I'd never get anything done. Since I have no problem getting Firefox to scroll one page at a time, and I'm constantly jumping between 3 browsers, it would be nice to be able to scroll a full page at a time in Safari, just like I can in Firefox. Thanks.

  • I have a ipod touch 2nd generation 8gb 4.2.1 im new to itunes i made a itunes account but it says i need a payment method is there anyway i can use my paypal if not is there a way to not have to use a payment method for itunes store please help ty

    i have a ipod touch 2nd generation 8gb 4.2.1 im new to itunes i made a itunes account but it says i need a payment method is there anyway i can use my paypal if not is there a way to not have to use a payment method for itunes store please help ty

    Create a NEW account using these instructions. Make sure you follow the instructions. Many do not and if you do not you will not get the None option. You must use an email address that you have not used with Apple before.
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    Using those instructions you may also be able to select PayPal if that is allowed in your country.

  • When I plug in my Olympus TG 820 to my iPad2 a message pops up warning me that the attached device uses too much power. Is there a way around this?

    When I plug in my Olympus TG 820 to my iPad2 a message pops up warning me that the attached device uses too much power. Is there a way around this?

    1. Turn off iPad
    2. Connect camera to iPad
    3. Turn on power of camera
    4. Turn on iPad

  • Every time I go to a new site or I refresh a site I'm already on, I have to use the zoom feature. Is there a way to keep it zoomed to a certain size page?

    Every time I go to a new site or I refresh a site I'm already on, I have to use the zoom feature. Is there a way to keep it zoomed to a certain size page?

    Try the Firefox SafeMode. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    # You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    # Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • Hi, I have purchased an iPhone 4 in South Korea and I want to use it in India. Is there any way to unlock this in South Korea?

    Hi, I have purchased an iPhone 4 in South Korea and I want to use it in India. Is there any way to unlock this in South Korea?

    yes it is very easy...
    first of all your phone have to be all paided off.
    if your phone is all paid off you can call your carrier (have someone who speaks korean to call) tell them that your moving/visiting your country and you would like your phone to be unlocked. somehow they do this over the phone and it takes three - four days for them to do this.
    its real easy.
    if your phone is not paid off you can just tell them that your visiting your country and you would like to use your phone there.

  • Because the Firefox update today required me to update and install an update to an adobe application and then required me to restart my computer I "lost " the connection to my previous session and tabs. Is there any way to recover my tabs from yesterday?

    Because the Firefox update today required me to update and install an update to an adobe application and then required me to restart my computer I "lost " the connection to my previous session and tabs. Is there any way to recover my tabs from yesterday?

    Do you memeber the complete wording of the error message?
    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar

  • HT4759 i have lost my iphone i dont have iemi number but i used icloud id on that as there any way to locate my phone and if not located the plz tell my the way i remove my data from it. thanks

    i have lost my iphone i dont have iemi number but i used icloud id on that as there any way to locate my phone and if not located the plz tell my the way i remove my data from it. thanks

    Go to icloud.com.  Log in with your Apple ID & Password.  Go to the Find My iPhone section.  Perform a remote wipe of the device.
    You don't have to have downloaded any app.  You only have to have enabled the Find My iPhone option under Settings > iCloud.  If you did not do that, then you cannot remotely access the device.
    If that's the case, then change ALL of your account passwords; email, banking, etc.  All of them.  And then monitor those accounts very closely!

  • How to use session object in windows application

    hi, I am programming in jdeveloper. i need to know that while i m making a web application i can use a session object for the particular session. now i m builiding a windows application for my final semester and i need to insert product id and then it should go to another frame and there it can store multiple information for a particular product id.
    e.g
    product id : 001
    next frame.
    filter name.
    filter position.
    when these are added then it should be able to add more filters for the same product id and i dont understand how to do that.
    Please let me know as i am lost and dont know how to proceed further. if some body wants to have a look on the codes he is most welcome.
    Waiting for an answer
    thank you

    Hi,
    in Swing applications you don't have a session object to store data. You can use a helper class though to act as a temporary memory. Just create a static class that has a hashtable method to add / read / remove data
    Frank

  • How to use session object in jsp

    hi all
    marry christmas
    can anyone plz tell me how to use session obect in jsp
    rachna
    Message was edited by:
    rachna_arora82

    hi rachna,
    JSP has a default(implicit) session object...... use the getSession(true) method on the session object and then going u can either get or set attributes depending on the requirement
    That was in general and now with the issue u have got..... what u can do is that the u can create session for every user who logs in and when he/she tries to login again then u can probably check for the existing session object in the JSP and perform the logic as required..... any clarifications plzzzzzzz let me know
    Thanks n Regards
    Naveen M
    Message was edited by:
    Novice_inJAVA
    Message was edited by:
    Novice_inJAVA

  • How to keep track of which tab is currently active in the page using Session object?

    Hi,
    Just curious as to whether it is possible to have a PL/SQL event fire on an active tab.
    The reason is I want to keep track of which tab is currently active on the page is that I have "generic" forms and reports published as portlets that I wish to be able to determine from the session object what page/tab the user is coming from and apply certain restrictions etc.
    kind regards,
    Matt.
    null

    Hi Konstantina,
    Yes You can do like that 2012-->q1-->January
    Steps:
    1. Create time dimension hierarchy as by following like Total--> year--> Quarter--> Month--> if you need you can keep Description.
    2. Drag the Year column from period dimension table to the dimension hierarchy of year.
    3. Drag the quarter column from period dimension table to the dimension hierarchy of Quarter.
    4. Drag the month column from period dimension table to the dimension hierarchy of month.
    5. Drag the hierarchy to period dimension table in presentation layer.
    In Answer side keep as it as Default: drill in primary and secondary interaction under column properties.
    For more refer : http://mkashu.blogspot.com
    Regards
    VG

  • Is there better way to write SQl Insert Script

    I am running out of ideas while working on one scenario and thought you guys would be able to guide me in right way.
    So, the scenario is I have a Table table1 table1(fieldkey, DisplayName, type) fieldkey - pkey   This table have n number of rows. The value of fieldkey in nth row is n. So if we have 1000 record, then the last row has a fieldkey = 1000.
    Below is my sample data.
    Insert into table1 (FIELDKEY,DISPLAYNAME,TYPE) values
    (1001, 'COfficer',100);
    Insert into table1 (FIELDKEY,DISPLAYNAME,TYPE) values
    (1002, 'PData',100);
    Insert into table1 (FIELDKEY,DISPLAYNAME,TYPE) values
    (1003, 'EDate',100);
    Insert into table1 (FIELDKEY,DISPLAYNAME,TYPE) values
    (1004, 'PData',200);
    Insert into table1 (FIELDKEY,DISPLAYNAME,TYPE) values
    (1005, 'EDate',300);
    Insert into table1 (FIELDKEY,DISPLAYNAME,TYPE) values
    (1006, 'Owner',400);This way of inserting the row with hardcoded value of fieldkey was creating the problem when the same table was used by other developer for their own new functionality.
    So, I thought of using the max(fieldkey) +1 from that table and use it in my insert script. This script file runs every time during software installation.
    I thought of using count to see if the row with same displaytype and type exists in that table or not. If exisits do not insert new row, if not insert new row.
    It looks like i will have to query the count statement everytime before I insert the row.
    select max(fieldkey) +1 into ll_fieldkey from table1
    select count(*) into ll_count from table1 where display ltrim(upper(name)) = 'COFFICER' and type =100)
    if ll_count >0 then
    Insert into table1 (FIELDKEY,DISPLAYNAME,TYPE) values
    ( ll_fieldkey, 'COfficer',100);
    ll_fieldkey := ll_fieldkey +1
    end if;
    select count(*) into ll_count from table1 where display ltrim(upper(name)) = 'PData' and type =100)
    if ll_count >0 then
    Insert into table1 (FIELDKEY,DISPLAYNAME,TYPE) values
    ( ll_fieldkey, 'PData',100);
    ll_fieldkey := ll_fieldkey +1
    end if;
    ... and so on for all the insert statement. So, i was wondering if there is some better way to handle this situation of inserting the data.
    Thank you

    Hi !
    For check if the same display name and type already exists in table i would use Unique Key , but then again instead of if statement you should code some exception handlers. ... Hm .. Unque key is by may opinion better solution as
    codeing checks .
    For faster inserts that is , smaller code .. if there is no rules for values and the values are fixed , in any case you have to do this 100 inserts. If you can "calculate" values then maybe you can figure out some code .. but effect will be the same as hundred insert stetements one after another .. Procedure with this 100 inserts is not so bad solution.
    You can fill with values a nested table and then use forall ... save exceptions insert and with above mentioned UK , maybe this will be better.
    T
    Edited by: ttt on 10.3.2010 13:01

  • Is there better way?

    Hi! To check which input for the population is lower I used double min and double max. But while loop for counting years is not working. What is better way to do it?
    I'd appreciate any help you can give.
    Thanks.
    Program asks for data on two species and has to respond by telling how many years it will
    take for the species with lower
    population outnumber the species that starts with higher population.
    class SpeciesTry
    private String name1;
    private String name2;
    private int population1;
    private int population2;
    private double growthRate1;
    private double growthRate2;
    public void readInput( )
    System.out.println("What is the first species' name?");
    name1 = SavitchIn.readLine( );
    System.out.println("What is the population of the species?");
    population1 = SavitchIn.readLineInt( );
    while (population1 < 0)
    System.out.println("Population cannot be negative.");
    System.out.println("Reenter population:");
    population1 = SavitchIn.readLineInt( );
    System.out.println("Enter growth rate (percent increase per year):");
    growthRate1 = SavitchIn.readLineDouble( );
    System.out.println("What is the second species' name?");
         name2 = SavitchIn.readLine( );
         System.out.println("What is the population of the species?");
         population2 = SavitchIn.readLineInt( );
         while (population2 < 0)
         System.out.println("Population cannot be negative.");
         System.out.println("Reenter population:");
         population2 = SavitchIn.readLineInt( );
         System.out.println("Enter growth rate (percent increase per year):");
    growthRate2 = SavitchIn.readLineDouble( );
    public void writeOutput( )
    System.out.println("Name of the species' = " + name1);
              System.out.println("Population = " + population1);
              System.out.println("Growth rate = " + growthRate1 + "%");
              System.out.println("Name of the species' = " + name2);
              System.out.println("Population = " + population2);
    System.out.println("Growth rate = " + growthRate2 + "%");
    public void outnumbersPopulation()
    double max=0; double min=0; double minGrowthRate=0; double maxGrowthRate=0;
    String maxName=null; String minName=null;
    int years=0;
    if ((population1<=population2)&(growthRate1<=growthRate2))
    System.out.println("The species " + name1 + " will never outnumber the species " + name2 );
    System.exit(0);
    else if ((population2<=population1)&(growthRate2<=growthRate1))
    System.out.println("The species " + name2 + " will never outnumber the species " + name1 );
    System.exit(0);
    if((population1>population2)&(growthRate1<growthRate2))// this is to determine which population is smaller
    max=population1;
    maxName=name1;
    maxGrowthRate=growthRate2;
    min=population2;
    minGrowthRate=growthRate1;
    minName=name2;
    if ((population2>population1) &(growthRate2<growthRate1))
    max=population2;
    maxName=name2;
    maxGrowthRate=growthRate1;
    min=population1;
    minName=name1;
    minGrowthRate=growthRate2;
    while ( (min <=max) & (years > 0) )
    min= (min +((minGrowthRate/100) * min));
    max=(max + ((maxGrowthRate/100) * max));
    years ++;
    System.out.println("The species " + minName + " will outnumber the species " + maxName +
    " in " + (years+1) + " years");
    public class Species
         public static void main(String[] args)
         SpeciesTry s1= new SpeciesTry();
         s1.readInput();
         s1.writeOutput();
         s1.outnumbersPopulation();
    }

    I'm new to Java and posting. So, here's my program again with outnumberPopulation() method formated. Is there any hope for this program?
    class SpeciesTry
    private String name1;
    private String name2;
    private int population1;
    private int population2;
    private double growthRate1;
    private double growthRate2;
    public void readInput( )
    System.out.println("What is the first species' name?");
    name1 = SavitchIn.readLine( );
    System.out.println("What is the population of the species?");
    population1 = SavitchIn.readLineInt( );
    while (population1 < 0)
    System.out.println("Population cannot be negative.");
    System.out.println("Reenter population:");
    population1 = SavitchIn.readLineInt( );
    System.out.println("Enter growth rate (percent increase per year):");
    growthRate1 = SavitchIn.readLineDouble( );
    System.out.println("What is the second species' name?");
         name2 = SavitchIn.readLine( );
         System.out.println("What is the population of the species?");
         population2 = SavitchIn.readLineInt( );
         while (population2 < 0)
         System.out.println("Population cannot be negative.");
         System.out.println("Reenter population:");
         population2 = SavitchIn.readLineInt( );
         System.out.println("Enter growth rate (percent increase per year):");
    growthRate2 = SavitchIn.readLineDouble( );
    public void writeOutput( )
    System.out.println("Name of the species' = " + name1);
              System.out.println("Population = " + population1);
              System.out.println("Growth rate = " + growthRate1 + "%");
              System.out.println("Name of the species' = " + name2);
              System.out.println("Population = " + population2);
    System.out.println("Growth rate = " + growthRate2 + "%");
       public void outnumbersPopulation()
            double max=0;  double min=0; double minGrowthRate=0; double maxGrowthRate=0;
            String maxName=null; String minName=null;
                    int years=0;
            if( population1>population2)// this is to determine which population is smaller
            {    max=population1;
                maxName=name1;
                maxGrowthRate=growthRate2;
                min=population2;
                minGrowthRate=growthRate1;
                minName=name2;
             else
                    max=population2;
                    maxName=name2;
                    maxGrowthRate=growthRate1;
                    min=population1;
                    minName=name1;
                    minGrowthRate=growthRate2;
           if (minGrowthRate<=maxGrowthRate)
              System.out.println(minName+" will never grow larger than "+maxName);
              return;
             while ( (min <=max) & (years > 0) )
                 min= (min +((minGrowthRate/100) * min));
                   max=(max + ((maxGrowthRate/100) * max));
                               System.out.println("Check" + max + min);
                               years ++;
            System.out.println("The species " + minName + " will outnumber the species " + maxName +
            " in " + (years+1) + " years");
    public class Species
         public static void main(String[] args)
         SpeciesTry s1= new SpeciesTry();
         s1.readInput();
         s1.writeOutput();
         s1.outnumbersPopulation();
    }

  • I have an Apple Time Capsule which I use for back up.  Is there a way I can send my photos to it each time I add new photos?  I guess I am asking if there is a way I can use it as an external hard drive?

    I take A LOT of pictures as I am an amerature photographer.  I have used up almost all of the space on my internal hard drive with photos and music.  Is there a way I can use my time capsul as an external hard drive?  If so, can anyone direct me where I can go to figure out HOW to do it?  I appreciate your help!!!!

    Buy a large enough external hard drive you can use to store your pictures permanently. Time Capsule is not a good choice for this. Keep your backups separate from your storage needs.

  • When opening a word document, I get this:The table of contents is empty because none of the paragraph styles selected in the Document Inspector are used in the document. Is there a way to solve this?

    The table of contents is empty because none of the paragraph styles selected in the Document Inspector are used in the document.
    The above is what I get when I open a word document. Is there a way to solve this?

    Hmmm. Apply the styles?
    Peter

Maybe you are looking for

  • Can't delete email with a 9 mb attachment from iphone

    can't delete email with a 9 mb attachment from iphone(3gs, software v 4.3.1) -- every time i try to delete the email with a swipe it shows the red delete button on the right but then freezes for a while and then the delete button disappears but the e

  • Extracting filtered records from aselect statement

    Hi, i have a query that produces an output like this: CONNECTED_LOAD M_LAST CIRCUIT_CODE SUBSTATION_CODE CLASSIFICATION 95---------------------------9/25/2011-----52SM4----------------LNLRCN003SML-----------------S 95---------------------------9/25/2

  • Balance Confirmation Query

    Hi Experts, I need the query for balance confirmation letter. The query should have the following result. Date, Balance as on Date, Current Balance, Name of Business Partner, Bill to Address of Business Partner Regards, Datta Kharat

  • Music plays after hanging up phone call

    Hi, I love my Xperia Z2 but for some reason if I have music paused, then I take a phone call, when I hang up the call, the music starts playing. I understand it should do this if the music is playing when the call comes in, but not if the music is pa

  • Can't sync contacts

    The first time I plugged in my new iTouch I let it synchronize with all the defaults. I got my contacts, but no calendar events. I tried to sort that out on subsequent syncs, and finally got the calendar events, but my contacts vanished. I haven't be