• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet and servlet communication problem

 
Rekha Pande
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have this JSP in which when i press the button, it calls this GUI applet. The GUI Applet needs to get information from Database on load. When i had run the GUI applet with directly connecting it to Database, it was wroking fine in the applet viewer but not in the IE. After searching on the net, i came to know that the best pratice is to use servlet. I wrote this code for the servlet. Now when i access the servlet alone from the IE , the Database connection seems to be working fine.
My problem is that i'm unable to pass information to and fro from servlet and applet. Please can some one have a look at my code and tell me where i am going wrong.

Servlet.java
-------------


Applet.java
-----------


Applet.html
-----------
 
Joe Ess
Bartender
Posts: 9337
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are attempting to contact the database directly with your update, which you have already figured out is a no-no.
In the future, try to limit the amount of code you post to a reasonable (20-30 line) sample. We're all volunteers here and we don't have the time to dig through tons of code.
[ March 23, 2005: Message edited by: Joe Ess ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic