Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

new page shows values entered previous record  RSS feed

 
sheethal Kumar choppari
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

i have a page which takes user details . once i save them for one user and trying to create another user , two fields of new page showing the values entered for previous user , i can edit them . what i want is when i select the new page it should come with blank fileds or some default values what i mentioned. this issue is happening in the same session. when i try to do same different sessions it is working fine. my observation was those previously entered values are coming from form object(front end). how can i resolve this ? where might be the changes in jsp/handler?

thanks in advance
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The most likely reason for this is the use of instance variables in a servlet. Do any of your servlets use instance variables?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!