Helen Choo

Greenhorn
+ Follow
since Jun 20, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Helen Choo

The websites provided is unaccessible.
Does it means that threads cannot return a value.
Then how do I control the concurrent submission from the servlets to the database?
I have many servlets wanting to access the database. I want to control the servlets and the users so that the data obtained is the most-up-to-date, no data conflicts and of high performance.
How do I go about doing it?Is there a need to create threads or servlets will help me in the management of threads?
Pls help me in this
Hi,
Can some one help me think of a solution on how to solve dependatable fields?
I have a servlet that get all the data from the database and I am supposed to display all the data in three fields(combo fields). Field 1 is independent. Field 2 depends on the data selected in field 2 and field 3 depends on the data selected on field 2.
How to do it using JavaScript and servlets? All the information is passed to the servlet and i do not know how the data can be used by JavaScript.
22 years ago
Are you using servlets for the requests. If yes, maybe you can try create sessions? If i remember correctly, Servlet allows you create session so that it acts like your cookies..
22 years ago
Hi,
I am new in threads but based on what i read, to create a thread class, you need to extend from Thread class and do the normal constructer and have a run or start method inside(Is it a must?)Is it possible that a run or start method return a value to the object that calls it?
Hi,
I am trying to update a database using servlets. Servlets must be allowed concurrent users to read and update the database. I have a few design choices in my mind but I am not sure which one is the best in performance and does not cause thread problems like deadlock and so on? Can someone give me a suggestion?
Database class- the class that control the connection to the database
Threads-used to read, delete and update the database
Servlets-response to the users.
When user enter into the selected servlets, the servlet will create threads to enter into the database class to read or update the information. Thread will create a new database class and updated the database.Thread is killed when the database is updated.
Should the connection to the database be static or non static if i want to ensure that every user who access the website get the most up-to-date information?
When does the database get updated(Committed), is it when the database connection is closed or when the statement is closed(the sql query)?