Solved

Regarding Writing a geneneric Login Servlet

Posted on 2004-09-20
3
124 Views
Last Modified: 2013-11-24
Hi,

I got one Login Servlet where user should enter his user name and password.How can I handle the input paramaters and allow an user in China or UAE to Login to my application If the user enter his user name and password in a language other than English ,say Chinese Alpphabest  or Arabic Alphabets  etc

Thanks in Advance
Chandrasekhar
0
Comment
Question by:chandrasekh
  • 2
3 Comments
 
LVL 18

Expert Comment

by:armoghan
ID: 12110160
1. One solution to teh problem could be to take name in different languages when you get a user registered and then check it for all the login names.

2. The other solution could be if somehow you  can get Keyboard Key pressed not the char pressed. and you can send the keys of teh keyboard to find match instead of the word typed
0
 
LVL 35

Accepted Solution

by:
girionis earned 500 total points
ID: 12110312
Have all possible usernames in the database in unicode and let the container take care of it. Java is by default unicode so it shouldn't have any problem. Just make sure the database has the usernames in different languages and they point to the same user. Or maybe have a separate table that holds the tranlsations and link to it with the id of the user.
0
 
LVL 18

Expert Comment

by:armoghan
ID: 12121878
Ahh I should have elaborated my point 1 :)
Good luck girionis
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now