File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Refresher Database Value

 
ratan lal
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually i designed a page in jsp that show all the user that are registered but not activated by admin. This page show name of inactivated user & activate button with each user name . When i click on activate button a java script function call that execute another jsp page, in which write code for activate that user. when status of activation is updated in database i wrote response.sendRedirect() for calling previvous page where it show my user name and active button. But problem is that it still show that user name in page which i just activated . I think that is due to not refresh data which i just update before send redirect .i am using MS-Access Database .
Please tell me what should i do. Thank in advance

 
suchit pandya
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Referesh the parent window. write a finction on onload of JSP which refresh the parent data. Call the same code when your parent page opens first time after displaying the message for user activated.
 
ratan lal
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your quick response but i have still confussion with your onload word. Is Page Onload means jspInit method.
 
suchit pandya
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


in JSP body you can call function on body onload. Means when ever your jsp will load at that time that function will be called. So when you display the message user is activated on that JSP you write a code to reload the parent JSP(JSP which displays inactive users).
 
ratan lal
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank Sir Once again, i will try to use it , if there will be any confussion related to that i will call you.

And one
 
suchit pandya
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wel Come anytime. And dont call sir man just suchit... i am not that much older I passed my B.E just before a year only.

 
ratan lal
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, from now i will call you suchit
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic