Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

which approach is good?

  Asked By: Sunil    Date: Mar 01    Category: Java    Views: 786
  

I am having problem in fact still have to decide what will be best solution for
my problem.

Let me write the scenario in detail. I have to make a web application and there
is a user with admin rights he can manipulate things like block user, approve
user (only approved can access member’s area) and delete user (user then have to
re-register again). Admin can view all details and particulars of users.

Now there can be two approaches to get this work done one is when admin request
for list I extract all user’s list (list of objects of type user) and set this
list in session and then if I have to view some user’s list just use query
string (for search key) and then search this object and then extract all
information and show it over jsp and this session object should be refreshed or
reset after a fixed interval of time.

Second approach is that I just go to database when admin request to see list
and then extract only names. And when admin selects some user (say “a”) then
again went to database and extracts that user’s whole information and so on.

I know 2nd approach will be easy to handle but is that a good approach and if
anyone have some other idea please share it because I want both easy and good
approach.

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on which approach is good? Or get search suggestion and latest updates.




Tagged: