Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can you Suggest me  RSS feed

 
Praveen Reddy
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ranchers

I am developing an application in this as soon as a Administrator
logged in he has 4000 merchants on click of any particular merchant
he/she can have the detail view of merchant information. i know this can be
done by using Ajax but here i should not use Ajax here i have to use servlets and jsp.

So i request you to suggest me what will be the best possible way
i can achieve this without using Ajax, i need to search for merchants.

thanks in advance
Praveen
[ May 31, 2007: Message edited by: Bear Bibeault ]
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the new page contains just the merchant details then popup window can be a good idea. User will close it after reading the details...
 
Praveen Reddy
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to know what will be the best way to search merchants. for smaller applications we can use drop down if it is for 4000 merchants drop down will not be good one, if any one does any application similar to this please suggest.

thanks ankur rathi if you have any idea regarding this please help me out

thanks
Praveen
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Praveen Reddy:
I want to know what will be the best way to search merchants. for smaller applications we can use drop down if it is for 4000 merchants drop down will not be good one, if any one does any application similar to this please suggest.

thanks ankur rathi if you have any idea regarding this please help me out

thanks
Praveen


You mean to ask, how to display those 4000+ merchants? Or how let user to search for a particular merchant out of all.

Of course you won�t like to display all on a page, so you will need to provide search box to let user enter keyword to find a merchant. If you have space on the page then display 8-10 important (most searched, most respected etc) merchants above the search box. Or something that sort of�

Search can be advanced one too depending on your need�
 
Raghavan Muthu
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why dont you try displaying the merchants details with an index structure say in terms of names [A-Z having links] or mechant ids {number ranges}.

When the user clicks on any of the link, it will inturn display the set of merchants falling under that category with a pagination if the number of users are more.

To be more clear:,

Case 1: Merchants with the name:
In the main or first page where the merchant details will have to be shown, lets say, you have some 'n' alphabets matching for the starting name of available merchants, whereas each alphabet having a link to proceed further by displaying the details of the merchants whose name starts with the selected/clicked alphabet.

  • Page 1 :

  • Lets say, all your 4000 merchants names are starting with A,B,C,F,J,K and not anything else (for example), you will have these alphabets with links in the first page.
  • Page 2 :

  • When the user clicks on the alphabet 'A', and if in case the merchants count is say about 1600 for this category, you display the portion of merchants details (say merchant id and name in full) upto the allowed limit. For example, 20 merchants per page would be decent on an average. This page will then contain the links for pagination for all the set of merchants whose name starts with the alphabet 'A'.
  • Page 3:

  • This page will show the complete information of the particular merchant whose name was selected in Page 2. This can even be a pop-up window as rathi told earlier.

    Case 2: Merchants with the Id
    Same as Case 1 but the front page will have the pagination links with the merchants id range instead of names. Say, 1-1000, 1001-2000 etc. Then you can have the subsequent logic for proceeding further in displaying the merchant details.

    Hope this helps to certain extent.
     
    Praveen Reddy
    Ranch Hand
    Posts: 51
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    thanks "ankur rathi" and "Raghavan Muthu" i hope what you suggested will solve my problem. let me think of it, i will try to work on it and let you know status.

    once again thanks a lot for your suggestion

    thanks
    praveen
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!