Win a copy of Rust Web Development this week in the Other Languages forum!

gaurav chaudhary

Ranch Hand
+ Follow
since Jun 24, 2002
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 gaurav chaudhary

help required on this please...
14 years ago
I have a zip file named as base.zip containing a war (binary) named as child.war. Now, when I upload it using the servlet, a single byte in the resulting file gets changed due to which base.zip opens but when I try opening the child.war through winzip, it results in an error of CRC mismatch. My upload servlet works fine for everything except this scenario and it also orks fine for any zip file not containing any compressed files.

I saw the contents through the binary diff and it shos a change in only single character from 66 to 0D.

Any help on this will be appreciated.
14 years ago
Thanks for replying...

I think I got the workaround on this. The locale object that was getting made was having "en_US" in the language field due to which this issue was there. I just replaced it and it works fine BUT only on Mozilla.

Now I have another issue which is inspite of anything I set in the Internet Explorer, the request.getLocale() is always giving the en_US as the value.

I changed the settings in the Tools->Internet Options->General->Languages. I removed en_US at all and just had "ja" but still it gives me en_US. This isuue is not there if I access the application by Mozilla.
I am using IE6 as my browser.

Any help on this will be appreciated...
14 years ago
I have a folder named i18n in which there are message files namely
gaurav_en.properties
gaurav_ja.properties

Now, if this is accessed from a japanese server, with the language in the browser set as en_US, gaurav_ja.properties is getting loaded instead of the gaurav_en.properties.

I read somewhere that first the server will try to load the gaurav_en_US, then gaurav_en and then if it is not found, it will load the default locale of the server that is gaurav_ja.

I need help on this.

thanks in advance
14 years ago
I have a form field <input type="file">. The problem is that when user presses enter key on browse button then I want the file dialog box to open which is not happening in the normal case. Is it possiblle? If yes then how?
thanks in advance
gaurav
Hi all, this is regarding showing thumbnails in a web page. I have a web page where I have to show 60 thumbnails fetched from our dms server. Now, what we do is, we make different links like the url from which first image will be loaded is http://xxxx/xyz=image1 and so on. The problem is I want to synchronize the response object with the images. Meaning all the images come on the client side at one go and server connections are not made differently for each image. Means i want to get whole data at one go. Now I don't know at all from where to start. I just want a starting point for this.
thanks in advance
gaurav chaudhary
17 years ago
Hi all, this is regarding showing thumbnails in a web page. I have a web page where I have to show 60 thumbnails fetched from our dms server. Now, what we do is, we make different links like the url from which first image will be loaded is http://xxxx/xyz=image1 and so on. The problem is I want to synchronize the response object with the images. Meaning all the images come on the client side at one go and server connections are not made differently for each image. Means i want to get whole data at one go. Now I don't know at all from where to start. I just want a starting point for this.
thanks in advance
gaurav chaudhary
17 years ago
I am having a simple java program for sending mail. I want to use utf-8 bit encoding for special characters. The problem is when the message and subject contains special german characters then they are not shown properly in my outlook. So, i used

where msg declaration is

This code solved the problem in message body but what do i do for setting content in subject also to utf-8. The function i am using is



thanks in advance
gaurav
17 years ago
what's the difference between declaration of x & y

thanks in advance
18 years ago
I wrote a small piece of code and I am wondering that why is it working

In this code, y is declared two times, in class and in main also. The program should give an error but it is being compiled successfully. Can anybody plz explain me the reason for this.
thanks in advance
18 years ago
I am not able to get the concept of serializable. Can anybody plz explain why some objects have to be serializable? And the concept behind transient.
thanks in advance
18 years ago
i have opened multipe windows through anchor tag eg<a href="dd.htm">
so how do i close all open windows on a click
the problem is that these windows are not opened with javascript window.open method
I have made one application containing jsp's and servlets on Apache/Tomcat. Now I want that I should be able to make all the things in one exe so that when I give that exe to the client then he just installs it and my code and apache/tomcat with jre gets installed in the background. Now, I started doing that with InstallAnywhere and I succeded partially and my project started but only the htmls. In case of Jsp's, the explorer shows the error
Apache Tomcat/4.0.2 - HTTP Status 503 - Servlet jsp is currently unavailable
Servlet jsp is currently unavailable
Can u tell me the problem for this?
thanks in advance
gaurav
[ December 10, 2003: Message edited by: gaurav chaudhary ]
18 years ago
i have my staging folder that contains apache tomcat ,jdk1.3,class files and
jsp files.
if i just copy the staging folder onto the client machine without installing
the jdk and apache tomcat;will my application work or do i have to install the jdk and apache tomcat and then copy the class files and jsp's.
I would be grateful for a quick response.
18 years ago
i am making a jar file and want to add my manifest file to it. The manifest file name is zzz.mf and java class I want to add is zzz.class. The manifest file code is
Manifest-Version:1.0
Main-Class: zzz.class
Java-Bean:True
When I am giving the command to create the jar file it is giving the following error.
invalid header field
The syntax is:
jar cfm abc.jar zzz.mf zzz.class
thanks in advance
[ November 27, 2003: Message edited by: gaurav chaudhary ]
[ November 27, 2003: Message edited by: gaurav chaudhary ]
18 years ago