Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to re set a existing bean

 
anarkali perera
Ranch Hand
Posts: 237
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is my jsp


this is the jsp which get the bean values


but when i run two times first jsp it shows first time values.
but if i restart the server then it shows new values.why is that?
can i chang the bean value without restarting my server?
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try this in your bean.jsp



or set request or page scope for your useBean

instead of




also <jsp:setProperty name="one" property="name" param="name"/> is as same as <jsp:setProperty name="one" property="name" />

Hope this helps
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic