File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android 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
 
It is sorta covered in the JavaRanch Style Guide.
 
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