Solved

Regarding Writing a geneneric Login Servlet

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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Unhandled exception type Exception 18 52
Bot application - advice 3 58
Java 8 to Java 6 8 32
Hibernate Inheritance Strategy for Abstract Base class and two concrete classes 3 16
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This video teaches viewers about errors in exception handling.

713 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