aspose file tools*
The moose likes JSP and the fly likes Registration process Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Registration process" Watch "Registration process" New topic
Author

Registration process

Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
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

Joined: Jan 14, 2010
Posts: 317

please use equalsIgnoreCase to compare the values This will solve first problem.
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

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

Joined: Aug 16, 2007
Posts: 1374
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Registration process
 
Similar Threads
Telemarketers go bye bye?
Editing URL of an Application
Do you model Physical Things or Processes?
Does anyone have any pre-built tags to validate contact info fields (e.g. phone, email, state ...)
Mask JTextField 1.3