Abraham Moyo

Greenhorn
+ Follow
since Feb 01, 2008
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Abraham Moyo

I must agree with Paul.

Imagine what would happen if you had 2 users (table row entries) with the same username but different passwords.....
Please elaborate on what the statement below means? Do you mean that you ran the query it took 1 Hour to return a result set, and then you are manipulating the data using java to write it to file and it takes 5 hours?

Quote:

Though the query is completed in 1 hour, for packaging it is taking more than 5 hours.


so weird!???!
12 years ago
Hi,

loading and instantiation should be the same thing (I stand to be corrected)!

When a JVM create an instance of a java object it is called instantiation. And where else does it happen? In the memory. The class is made into a runtime object during instantiation and we have the result (the object) in the memory. So, as I see it class loading and instantistion is the same.

By the way, a servlet is a java class and so should follow suite.
Hi Vishal, always a pleasure.

Going deeper into it and from what I understand, if no content-type is set, it will be up to the container as to what the default value will be.
What is guaranteed is that the container will call the getContentType() method of the ServletResponse or HttpServletResponse

Quoting from the specification of that method, the method

Returns the content type used for the MIME body sent in this response.

...Whatever value would have been set, which in this case we have not. The method specification goes onto state that,

If no content type has been specified, this method returns null

....

And from my understanding it is now up to the container how to handle the returned null value.

Yt again, this is from deduction and I stand to be corrected.




[ December 09, 2008: Message edited by: Abraham Moyo ]
Quoting from the java 1.4 specification....

The charset for the MIME body response can be specified explicitly using the setCharacterEncoding(java.lang.String) and setContentType(java.lang.String) methods, or implicitly using the setLocale(java.util.Locale) method. Explicit specifications take precedence over implicit specifications. If no charset is specified, ISO-8859-1 will be used. The setCharacterEncoding, setContentType, or setLocale method must be called before getWriter and before committing the response for the character encoding to be used.



I do not think the default null setting will be true, but I stand to be corrected.
I am getting certified even if it is said to be difficult.

Point me in the direction and and I will drive the herd there!!!

In no more than 2 months the number of Certified Gurus wld have increased By One at least...That I guarantee