Nidhin Kannan

Greenhorn
+ Follow
since Oct 13, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nidhin Kannan

Hi
If the session timeout is set to -1, the server will not end the session. Meaning that even if the user closes the browser and comes back and goes to the same page. If the timeout period of the session on that server has not elapsed, the user will be able to log into the site automatically, without any login parameters.
Unless ofcourse, ur page is intelligent enuff to trap a browser close event and send signal to the server to flush session and so, ask user to relogin at the time of coming back to the site.
In case of sites like yahoo if u accidentally close your browser and come back to the site, it takes you to the email access page. this is assuming that the session timeout hasnt happened yet.
BreakThru NOT BreakDown!

Originally posted by Joel McNary:
I'm not sue I understand the question, but separate JVMs do not share the same memory space. Thus, the values of the variables are independent. Try the following:


Run this class as : java HelloWorld
Then, while it's sleeping (it's sleep for an hour -- you'll have the time), launch another: java HelloWorld Print

You will get "Hello, World" printed, even though the first program set it to "Bonjour, Monde" -- the variables are separate.



Hi Joel,
thanx for the reply. this programe has this argument and no argument methods to call the HelloWorld. thats bound to give different results even on the same JVM.
However, i think the results should be same because u cant have 2 jvms sharing the same memory on the same CPU based machine, meaning your copy of the program would have initiated to the same value in case of the static variables.
Whatsay??
Nidhin. your copy of the program
19 years ago
Hi,
A question that an interviewer put forward.

1. Consider there are 2 JVMs on ONE machine. Consider also that you have a Class that has a static variable.
2. Now consider that you are initiate the static variable via the main method of that class on one JVM.
3. If I display the values of the class' static variable on the second JVM, what value will I get? Will it be the same value that I had initiated using the first JVM or will it be the value specific to the JVM in question where Im running the programs/classes.

Its a pure application. SOmething as simple as a HelloWorld program.

Any comments/answers would be welcome.

Thanx,
Nidhin.
19 years ago
hi
am assuming that u have the <html:form ..> tags and the struts action class all coded and ready for your example? check whether u are nullifying or even, populating the particular value u need in the next jsp page.
19 years ago