What would happen??  I used "import" and "useBean" for same bean...

Hi, yes, I'm not a professional programmer (clearly)
I used the import page directive and the jsp:useBean statement for the same bean in a jsp program I wrote.
What's interesting is that the program works fine for me, storing values and retrieving them from the bean as I click through the different jsp pages.
However, it doesn't work well for one of my friends, the values usually get lost as he clicks through the jsp pages.
I then noticed I used both statements to refer to the same bean, is that why this is happening? Were two instances of the bean sometimes being created even though the useBean had scope = session?
Something else, again, the program works perfect for me, not for him. We did a speed check using:
http://helpme.att.net/dsl/speedtest/
His speed was twice as fast as mine. Would that explain why he sometimes (almost always actually) lost values between the jsp pages?
Below is the first few lines on each jsp page:
<%@ page language="java" import="java.util.*" %>
<%@ page errorPage="exception.jsp" %>
<%@ page import="test1.UserData"%>
<jsp:useBean id="user" class="test1.UserData" scope="session"/>
<jsp:setProperty name="user" property="*"/>
Thanks for any and all help,
Robert

The webcontainer creates a new cookie for each session so that it can keep track of each user session. If cookies are disabled, then sessions are been tracked by URL rewriting (a query parameter 'jsessionid' will be attached to the URL with the session ID as value).
Opening a new browser instance (not a tab or a new window from within the currently running instance) would also trigger a new session being created.

Similar Messages

  • I just backed up my mac to an external hard drive using Time Machine. What would happen if I turn Time Machine off and then plug the external hard drive back into my computer?

    I just backed up my mac to an external hard drive using Time Machine. What would happen if I turn Time Machine off and then plug the external hard drive back into my computer?
    What I am ultimately wanting to do is make more room on my computer by backing up all of my files onto the external hard drive and then deleting them off of my computer. However, neededing to be able to retrieve them from the external hard drive later down the road.
    From what I have read and am trying to understand, is that I probably shouldn't have used time machine. I need to use the external hard drive like a basic flash drive where I can put things on and get things off without having it automatically update through time machine everytime I connect it to my computer.
    Not tech savvy at all and barely understand basics. I need very simple and easy to understand explanations.

    sydababy wrote:
    and then deleting them off of my computer.
    BIG BIG MISTAKE ..... youre making a linchpin deathtrap for your data trying to shove everything on a single fragile HD.
    Dont suffer the tragedy other people make, buy another or 2 more HD, theyre cheap as dust.
    The number of people who have experienced terror by having a single external HD backup is enormous.  One failure that WILL HAPPEN, and kaput,......all gone!
    Dont do it, its all about redundancy, redundancy, redundancy.
    follow here:
    Methodology to protect your data. Backups vs. Archives. Long-term data protection
    Deleting them off your computer is fine....having only ONE copy is extremely BAD.
    The Tragedy that will be, the tragedy that never should be
    Always presume correctly that your data is priceless and takes a very long time to create and often is irreplaceable. Always presume accurately that hard drives are extremely cheap, and you have no excuse not to have multiple redundant copies of your data copied on hard drives and squirreled away several places, lockboxes, safes, fireboxes, offsite and otherwise.
    Hard drives aren't prone to failure…hard drives are guaranteed to fail (the very same is true of SSD). Hard drives dont die when aged, hard drives die at any age, and peak in death when young and slowly increase in risk as they age.
    Never practice at any time for any reason the false premise and unreal sense of security in thinking your data is safe on any single external hard drive. This is never the case and has proven to be the single most common horrible tragedy of data loss that exists.
    Many 100s of millions of hours of lost work and data are lost each year due to this single common false security. This is an unnatural disaster that can avoid by making all data redundant and then redundant again. If you let a $60 additional redundant hard drive and 3 hours of copying stand between you and years of work, then you've made a fundamental mistake countless 1000s of people each year have come to regret.

  • What would happen if site to site conference call using G.729

    conference bridge I am currently using is software conference , I am aware that Cisco software conference bridge only support G.711. and my project is a multisite project and site to site calls are via wan not PSTN. so my question is what would happen if a site to site add hoc or meet me conference call is made based on G.729. it doesnt work at all or there are some alternatives. I appreciate any input, thank you in advance

    The main problem is that you will need some xcodes or MTPs in order to use the Software conf bridge, but be aware that using G.711 conf through a WAN link will decrease the available bandwidth and it might fail, for instance, G.711 uses 80 kbps, rather than G.729 that uses 24 (3 G7.29 calls per 1 G.711).
    Here is the codecs' bandwidth utilization:
    - G.711 call uses 80 kbps
    - G.723 call uses 24 kbps
    - G.729 call uses 24 kbps
    - GSM call uses 29 kbps
    - Wideband call uses 272 kbps
    At this point the only option that you have is to get an HDV module and some DSPs and configure a HW xcode and conf bridge.

  • What would happen if i had my ipod sync to a computer then i plugg it in a different computer and i sync it to that computer what would happen

    what would happen if i had my ipod sync to a computer then i plugged it in to a different computer and sync it what would happen

    The contenst of the iPod would be erased and replaced with what is in the itunes library of the computer.  You can manage music among different computers.  See:
    Using iPhone, iPad, or iPod with multiple computers

  • If I have an older iPhone and it is connected to my cloud account with my other devices, what would happen if I delete my cloud account from that phone, will I delete it across all my devices?

    if I have an older iPhone and it is connected to my cloud account with my other devices, what would happen if I delete my cloud account from that phone, will I delete it across all my devices?

    Also, I have one more thing to ask. Can I then set up a new cloud account for the old iPhone just for my son to use?

  • My friend gave me his iphone 4s and the phone is asking me to activate it under my friends apple id and password. my friend and i were wondering what would happen when we activate the iphone 4s? we don't know if its just going to unlock it or somethinels

    my friend gave me his iphone 4s and the phone is asking me to activate it under my friends apple id and password. my friend and i were wondering what would happen when we activate the iphone 4s? we don't know if it ist going to unlock it so we can use it or if it is going to activate his phone again into the iphone 4s

    No it's not stealing. They have an allowance that you can share with so many computers/devices. You'll have to authorize her computer to play/use anything bought on your acct. You can do this under the Store menu at top when iTunes is open on her computer.
    As far as getting it all on her computer....I think but I am not sure (because I don't use the feature) but I think if you turn on Home Sharing in iTunes it may copy the music to her computer. I don't know maybe it just streams it. If nothing else you can sign into your acct on her computer and download it all to her computer from the cloud. Not sure exactly how to go about that, I haven't had to do that yet. I wonder if once you authorize her computer and then set it up for automatic downloads (under Edit>Preferences>Store) if everything would download. Sorry I'm not much help on that.

  • What would happen if I turn off my backup and delete backup data From my device? Will it delete my music and everything for ever or just stay in the cloud but not on my device?

    What would happen if I turn off my backup and delete backup data From my device? Will it delete my music and everything for ever or just stay in the cloud but not on my device?

    If you have multiple devices backing up to the Cloud, you will see all of them listed. You would click on each device to change what is backed up from that device. You can then delete your individual back-ups.
    Once you have all your settings to your liking, you can then go back to Settings>iCloud>Storage & Backup, and click on Back Up Now (bottom of the screen) to create a fresh backup with your new settings.
    Cheers,
    GB

  • What's the difference between client combo and server combo? Also, what would happen if I install both?

    what's the difference between client combo and server combo? Also, what would happen if I install both?

    One is for the base version of the Mac OS, the other is for the Server version. You can only install the one that matches your system.

  • What would happen if I used Recovery Disk?

    I've recently bought a new iMac (Core i5) that came with Lion pre-installed, but I needed Snow Leopard for all my older software e.g. Photoshop CS, so I got the sellers to install SL for me. Everything is fine.
    Out of curiosity I tried to see if I could run Tiger from my old G5 HDD which is connected via USB, but it didn't come up in the list when I did Restart + Option. However, what DID come up was an extra drive named "Recovery". I understand this is a separate Lion partition on my HDD - so, what would happen if I selected that via Restart + Option? Would it open Lion on my iMac so I could have a play around with it? And if it did, would I then be able to get back to SL and all my data, users, and settings, after I'd finished?
    I don't want to try it out without advice, in case Lion overwrites SL irretrievably.

    christopher rugby wrote:
    My question is this : can I safely restart from Recovery in order to just play around with Lion, or will starting from Recovery reinstall Lion over the top of SL on my main disk?
    If your machine only has SL and the Recovery HD, then the only thing you can do when booting into the latter is REINSTALL Lion on top of SL or do some basic things, but Lion isn't installed. Details in Recovery/ and About Lion Recovery.

  • My iMac was synchronised to my iPod in the store I purchased it. When I purchase an audio books it is not synching accross to the iPod. Am I missing something . What would happen if I use the 'sync' button again?

    My iMac was synchronised to my iPod in the store I purchased it. When I purchase an audio book it is not synching accross to the iPod. Am I missing something ? What would happen if I use the 'sync' button again?

    Yes. Other things have synced including books, but I don't know how these happened. According to the 'audible' instructions it should happen automatically, but it doesn't.

  • What would happen if I added the itouch email to the add accounts on my iphone and confirmed that email address? Would only my iphone get both (itouch and iphone) messages? or will my itouch then also get my iphone messages as well??

    What would happen if I added the itouch email to the add accounts on my iphone and confirmed that email address? Would only my iphone get both (itouch and iphone) messages? or will my itouch then also get my iphone messages as well??

    Thank-you for clarifying third party and for pointing out the potential problems.
    i will either have my phone unlocked by the carrier or get my phone service from them. switching carriers is not essential.
    Thanks agin.
    Cheers!

  • What would happen if two concurrent threads try and remove ....

    Hello,
    I have a java test to give back tomorrow and I'm stuck on this question, could you help me please.
    Question: What is the difference between java.util.Vectorand java.util.ArrayList?
    I read everywhere that: The main difference between Vectors and ArrayLists is that Vectors are synchronized so any method that touches the Vector’s content is thread safe, which is not the case for ArrayLists.
    This part is ok.
    Now the second part of the question is:
    What would happen if two concurrent threads try and remove the third object
    of such a collection?
    I don't know what to answer. I could tell that if the vector or arraylist is smaller than 3 il will return an ArrayOutOfBoundException but what happen if they are longer?
    Thank you very much.

    RaptorKiller wrote:
    Hello,
    I have a java test to give back tomorrow and I'm stuck on this question, could you help me please.
    Question: What is the difference between java.util.Vectorand java.util.ArrayList?
    I read everywhere that: The main difference between Vectors and ArrayLists is that Vectors are synchronized so any method that touches the Vector&#146;s content is thread safe ...hm. hmmm...
    I wouldn't say anything about Vector or its methods being thread safe.
    Thing is, [Vector javadoc|http://java.sun.com/javase/6/docs/api/java/util/Vector.html|javadoc] does not state anything like that.
    Rather opposite, javadoc says Vector hates concurrent modification just like any other non-concurrent collection: +"...The Iterators returned by Vector's iterator and listIterator methods are fail-fast: if the Vector is structurally modified at any time after the Iterator is created, in any way except through the Iterator's own remove or add methods, the Iterator will throw a ConcurrentModificationException... Note that the fail-fast behavior of an iterator cannot be guaranteed as it is, generally speaking, impossible to make any hard guarantees in the presence of unsynchronized concurrent modification..."+
    This part is ok.I don't think this part is OK. I would stick with wording given in javadoc: +"Unlike the new collection implementations, Vector is synchronized"+ // synchronized does not necessarily mean thread safe, and Vector is the case proving that

  • If I take my bank card details off my itunes account and opened a new itunes account what would happen to the old account?

    If I take my bank card details off my itunes account and opened a new itunes account what would happen to the old account?

    you're more likely to get quick and accurate answers to an iTunes question in the iTunes forum, this is the GarageBand forum

  • If i used an iphone firmware to restore my ipod touch what would happen?

    If i used an iphone firmware to restore my ipod touch what would happen?

    Well I know I said I only have a second generation iPod Touch, so maybe I'm out of Touch (no pun intended) but I fail to understand how you have installed a SIM card into an iPod Touch.
    If your iPod Touch can have a SIM card installed into it, I would think that makes it a phone.
    iPhone perhaps?
    Sigh!

  • What would happen if i used the wrong voltage power cord on my g4

    What would happen if I used a higher voltage power cord on my powerbook G4.

    It is not the cord that determines what the voltage is, but what electrical supply it is connected to.

Maybe you are looking for

  • Demand not getting generated on MRP run.

    Hi All , We have an trouble ticket. For a particular sales order , the user has run the MRP , but no planned order is generated . So she cannot convert the planned order to production order . When she tries to create a production order with T-code CO

  • Can't update iTunes Match after upgrading to 11.1.5

    Hi, Is anyone else (in Australia) having problems with iTunes Match after upgrading to iTunes 11.1.5 on Mac? I've found that whenever I play a track (i.e. update the play count), set a rating or edit a playlist, all my cloud songs become greyed out,

  • ITunes no longer seems to embed all data in mp3's

    Hi all, been using iTunes for years now and one thing i've always liked is if i've imported a CD in to iTunes, i can simply transfer the files to another MAC/PC, drag and drop in to the library and all of the song info, artwork etc is there. Since ap

  • Play internal movie clip at target

    This seems fairly simple, but i can't get it to work. I want to play a movieclip from the library when a button is clicked. But the LoadMovie is for SWF. The only way I can get it to work is have the button click cause - goto frame, which has the mov

  • The Big Sync

    Ok, so this question will go somewhat beyond iCal, but this seems like the most appropriate place to start. I am guessing many people find themselves in the same situation as I'm in, with calendar and contact information spread across multiple applic