Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Vector  RSS feed

 
Hari Haran
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am getting users educational data from the jsp page.
He can input more than 1 educational qualification.Only after he says it is enough, I take all these data into the database.
Meanwhile,I am storing all the educational details he supplies in a vector.But when the page refreshes only the latest details are there(Suppose he had entered 2 degrees)only the latest one is visible.The rest are not there...
I tried initializing the vector size also...
What could be the problem...
Any help ASAP would be appreciated
:roll:
 
Guy Allard
Ranch Hand
Posts: 776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Show us some code please ......
Guy
 
Gerry Giese
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unless you put that data into the session you will lose it when the user hits the next page. Check the tutorials on java.sun.com or in your servlet/jsp reference for more info.
 
Hari Haran
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx,
Now when I put it in session scope.
It is working.
Hari
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!