Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Registration process

 
Vikas Kapoor
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is more like a logical issue than a technology related issue. Please feel free to move it, if required.

I am developing a registration process (Web App). An independent user or a company can register. In case of company is trying to register we ask few general information like company name, phone number, website address and things like this. Now my client has list of hundreds of thousands of companies that she wants to upload into the database. So when some company tries to register and if we have that company into our list then use that record instead of creating a new one. So what I need to do is I have to search first into list of companies into database and this where I need help.

During registration we ask company name, phone number, website address, fax number and information like this that I can use for search.

Case 1 : Using company name for search

- Javaranch can be spelled as Javaranch, javaranch, Java Ranch, JavaRanch Inc.

Case 2 : Using phone number for search

- User can enter XXX-XXX-XXXX or XXXXXXXXXX or XXX(space)XXX(space)XXXX

Case 3 : Using website address

- User can enter www.abc.com or http://www.abc.com


I am not able to finalize any solid process here. What I personally think, all the time we should create an entry of company trying to register and no need to use existing company records.

Please give some suggestions.
 
Harpreet Singh janda
Ranch Hand
Posts: 317
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please use equalsIgnoreCase to compare the values This will solve first problem.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
first upload the existing records into the database using .csv /excel from backend . then deal with database only

I prefer case 3 . if user enter wrong value, show an appropriate message and give an example for an input .
 
Vikas Kapoor
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seetharaman Venkatasamy wrote:first upload the existing records into the database using .csv /excel from backend . then deal with database only

I prefer case 3 . if user enter wrong value, show an appropriate message and give an example for an input .


Yes,I think, case 2 and case 3 are the only cases where I can control the input.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic