Bharat Mehta

Greenhorn
+ Follow
since Oct 29, 2007
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 Bharat Mehta

A Database is primarily used for record. Like application databases which work as Online Transaction Processing System where in every transaction has to be recorded, and it is highly optimized for write operations to make sure that every transaction gets recorded. The tables and joins in tables are complex as they are normalized to save storage space. A database uses Entity Relationship model for design.

A Data Warehouse is also a kind of database which is designed to speed up the process of querying and analysis. These databases are read optimized. A data warehouse works as Online Analytical Processing System where in tables and joins are highly de normalized to reduce the response time of queries. It uses data modeling techniques for design and is primarily used to maintain historical data to aid in taking quality business decisions.
Thanks folks for your insights on Singleton Class. But I have a query. Shouldn't we override the clone method which every class inherits from the Object class in Java, to prevent any cloning of the object of our Singleton class.



15 years ago
Ok I got you point Ulf . We should not be using 'PUT' here. Thanks
15 years ago
How about if we do this like below:


since you had used FileTransfer earlier.? It will be a guess since I have no sight of you Deployment Descriptor and the mappings therein

15 years ago
Srinivas , the reason for you getting a "Page can not be displayed" may be some conflicts between what you specified at "action" in your <form> and <url-pattern> in the Deployment Descriptor.

May be you are missing something there. Please check this part . Hope this helps you. And one thing more why have you used a "/" in beginning of <code>action="/FileTransfer/TempServlet"</code>?
15 years ago
Pardon me folks if I am wrong here, as I have just started to take dive in the waters of Servlets.

But I tried with PUT method.... and it did worked. Here is a summary of what I did...


and the Servlet code where i override the doPut method goes like this:


Any comments/thoughts on this?
15 years ago
The Servlet and JSP specifications does not provide us with any special feature to handle multipart requests (file uploads).

However,we can use third party libraries or make their own framework for this.Writing our own code to handle this is just like re-inventing the wheel. As Freddy Wong suggested we can use package at http://commons.apache.org/fileupload/.

But somehow it comes to my mind, what if we use PUT method?

15 years ago