Solved

Regarding Writing a geneneric Login Servlet

Posted on 2004-09-20
3
131 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This video teaches viewers about errors in exception handling.

772 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