File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Problem using JSP along with Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem using JSP along with Bean" Watch "Problem using JSP along with Bean" New topic
Author

Problem using JSP along with Bean

hasan asif
Greenhorn

Joined: Oct 18, 2000
Posts: 1
Made a JSP page which is using a bean. It works. But when we modify that bean changes doesn't reflect on JSP page. Our platform is Linux, using Jserv of Apache. Once we stop Jserv and again start it the changes done in bean gets reflected on JSP page.
Thanks in advace for providing solution.
thejus/mahesh
Greenhorn

Joined: Aug 21, 2000
Posts: 19
hi,
i think u must have written all the implementation in the init() part of the program.
NOTE init() gets executed only once that is when the first client request to the servlet.
That is why what ever changes u make in the bean won't be affected .

i hope i am clear
bye
thejus/mahesh
MSD
Greenhorn

Joined: Jan 22, 2000
Posts: 20
I don't know about jserv, but i was trying a somewhat similar thing with jswdk and got the same problem.
U see the servlet/jsp engine caches the classes required for a particular request and then for subsequent requests uses the cached copy. Now problem is even if u make changes, the newer class isn't loaded dynamically and cached copy is used. Thus,u do not see any changes. The solution is only to restart the engine, but, i guess there must be some solution in the jserv module admin that allows u to load a class at runtime and not used cached copy. Sorry, can't help u with that !!
Hope i was of some help.
-Mohammed
Made a JSP page which is using a bean. It works. But when we modify that bean changes doesn't reflect on JSP page. Our platform is Linux, using Jserv of Apache. Once we stop Jserv and again start it the changes done in bean gets reflected on JSP page.
Thanks in advace for providing solution.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem using JSP along with Bean
 
Similar Threads
using jsp:useBean
Redirecting to 3 different pages
State Maintainance in jsf
running servlets on jserv
configure JSP on Apache JServ