This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSP and the fly likes how to re set a existing bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSP
Bookmark "how to re set a existing bean" Watch "how to re set a existing bean" New topic

how to re set a existing bean

anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
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

Joined: Jan 28, 2008
Posts: 5575

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
GeeCON Prague 2014
subject: how to re set a existing bean