Sandeep Panda

Greenhorn
+ Follow
since Nov 07, 2011
Sandeep likes ...
Eclipse IDE Tomcat Server Java
Merit badge: grant badges
Biography
I am in love with the web.
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 Sandeep Panda

Hi

I am using Servlet 3.0 and MultipartConfig annotation(Using Parts) to upload files. The upload Servlet works perfectly but as soon as the app is redeployed the uploaded files are also getting deleted. I am storing the uploaded files in /WEB-INF/uploads directory of the web app. Please let me know why the files are getting deleted after redeploying the app.

Any suggestions will be highly appreciated.

Regards!
12 years ago
I want the applet to download a webpage which is provided through a parameter and post the content to a javascript function. To call javascript I am using AppletContext.showdocument(). For this I started a new thread and it was supposed to pass the contents of the webpage to a javascript method. But I am not able to get it working.

Please have a look at the code.



Any help will be highly appreciated.

Thanks!
12 years ago
UPDATE: I fixed the app crash problem. But now the new problem is proxy can't be resolved.

My PC is connected to the LAN through proxy. I am using the proxy with HttpURLConnection, but it gives error "Unable to resolve host". But I can access internet inside the emulator through the proxy.

Please have a look at my Code.


Where am I doing wrong? Am I setting the proxy in the correct way?

Any help will be highly appreciated.

Regards!
12 years ago
Yes.. I am able to understand now..The range of char is 0 to 65535 (as char is unsigned) whereas it is -128 to 127 for byte..so, from -128 to -1,the numbers don't fit into a char.
12 years ago
Figured it out...

Thanks all for reading the post.
12 years ago
Hi all,


Please have a look at the code:



It says possible loss of precision. My doubt is, char is of 2 bytes whereas byte contains 1 byte. So, assigning byte to char should not be a problem. What am I missing?


Any help will be highly appreciated.

Thanks in advance.

12 years ago
Hi

I downloaded jdk7+javaEE6+Glassfish3 Server bundle from Oracle and everything installed properly. I am totally new to servlets and I need a little help. I want to know how to deploy applications in glassfish. Which path is the web app container in glassfish3? What I need to do after compiling a servlet in order to deploy it in glassfish? I don't want to use netbeans or eclipse for deploying apps now. I want to do it myself.

Any help will be highly appreciated.

Thanks!
12 years ago