File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
I agree. Here's the link:
subject: how to re set a existing bean
It's not a secret anymore!