Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem using JSP along with Bean

 
hasan asif
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic