How to work with Chinese login page
(internationalization).if he enters user name and password
in chinese, how is it converted to English and validate in
db? And in reverse it should display welcome message in
Chinese,if user is valid
Answers were Sorted based on User's Feedback
Answer / rashmi
Using Locale Class, it may be done... try it using Locale
class...
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / venkat
Wen u are in such a condition, the resource bundles are used.
resource bundle is nothing but a property file.the container
looks for the specific property file and gets those values
in english.after performing the business logic, it again
looks the properties file .here the container does not
automatically does the process.we have to define some code
in the servlet.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / ravikiran
with the call to setLocale of the ServletResonse Interface
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / imran
you r accepting input data as chinese from the form then u
might be having some special methods to convert from
chinese to English in the system applications itself..try
to find out them....
| Is This Answer Correct ? | 2 Yes | 2 No |
When a client request is sent to the servlet container, how does the container choose which servlet to invoke?
Can you send the mail from a servlet ,if yes tell how?
Explain life cycle of a Servlet?
Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!
Where do you define dispatcherservlet?
What is done after deploying a war file and before client gives a request
What are the key methods that are involved in processing of http servlets?
How do you pass the data from one servlet to another servlet?
How do you find out what client machine is making a request to your servlet
why are extending GenericServlet and why are extending HttpServlet explain?
What mechanisms are used by a Servlet Container to maintain session information?
how to use servlets with j2ee ?