any errors in the java console of the applet?
what url are you using to load the page, and to post the image?
Main Topics
Browse All TopicsHi,
I have a JSP that invokes an applet. This applet creates an Buffered Image, I need to pass this buffered image to a servlet that is hosted on the same web server as the JSP, this servlet is supposed to create a file from the BufferedImage and then upload to a location on the same web server. I am facing a problem in the communication between the Applet and Servlet. The servlet is not even getting called..!!
Could you please tell me what I am missing, following is the code snippets that I am using
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
"http://localhost:6080/Web
Java Console that I launch with the applet shows the following message among others ... No Error Messages though
Sending the image data
network: Connecting http://localhost:6080/WebA
Sent the data to http://localhost:6080/WebA
Yes the Applet is supposed to send an image... and is within an applet tag in the jsp
The input to the URLConnection is BufferedImage so, I am supposed to check the data before being written to the URLConnection and then after being written to the connection ..!! if this does not make sense then I did not get your suggestion
URLCOnnection is bi-directional, you cas specify to use both input and output, and read from an inputstream after you have sent the image to the servlet (to see if the servlet responded with anything)
And you post your current applet sendBufferedImage method?
I can't see why this isn't working if everything is as you say it is
ACTUALLY:
Maybe if instead of doing nothing with the exception in:
} catch (IOException ex) {
ex.getMessage();
}
you could print the stack trace?
} catch (IOException ex) {
ex.printStackTrace()
}
Then you will see the error you are getting
Business Accounts
Answer for Membership
by: TimYatesPosted on 2009-07-07 at 02:52:42ID: 24792752
1) What is your "urlpath" set to?
2) Does the servlet get called if you load the servlet URL into the browser (it will then crash, but you should see it getting called)