Search:

Type: Posts; User: J05HYYY

Search: Search took 0.11 seconds.

  1. Re: What can I use instead of instance variables in a servlet?

    I've been playing around with it and seems to work fine. I have never written more than one class before but it was pretty straight forward.

    I saved this as MyClass.java and compiled it into...
  2. Re: What can I use instead of instance variables in a servlet?

    Hmm these POJO's seem complicated. I'm not so good with OOP as it is. Could I request some code on how to do this, or is that asking a little too much? ^:)^

    [Maybe I would be better asking about...
  3. Re: What can I use instead of instance variables in a servlet?

    Okay, say I have the code below ...

    randomMethod can change instance variables "count" and "randomstr". Which is what I'm after.

    But my problem is that because they are instance variables, all...
  4. Re: What can I use instead of instance variables in a servlet?

    Yeah, I tested the code. Also, it's example 3.1 from here.

    With instance variables, all requests share one variable whereas with local variables it's on a per-thread basis... but what if I want my...
  5. What can I use instead of instance variables in a servlet?

    Hello, I have a program I want to convert into a servlet. When I use an instance variable; "count" in this case, it is one variable for many users and it does not reset to 0 each time the servlet is...
Results 1 to 5 of 5