This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to re set a existing bean" Watch "how to re set a existing bean" New topic
Author

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: http://aspose.com/file-tools
 
subject: how to re set a existing bean
 
Similar Threads
NULL
include directive doesn't work
calling jsp directl from HTML form
bean value gives null
give another jsp to action