Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Applets and servlets

  Asked By: Kerri    Date: Jun 27    Category: Java    Views: 660
  

Does anyone know how to combine applets and servlets so that they
can work together... basically i want to use the servlet to write
and read data from a database which is being used in the applet...

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Abrianna Rossi     Answered On: Jun 27

From your applet  u can;
.................
URL url = new
URL("http://<host>/<servlet>?<query>");
......................
...url.openStream()...
......................

:do not forget that unsigned applets  can only connect
to hosts where they had been downloaded.

 
Answer #2    Answered By: Damon Jones     Answered On: Jun 27

Yes, you can use applet  and servlet  together. I had used. Let me know
your requirement so that I can send you the sample code.

 
Answer #3    Answered By: Varun Mehta     Answered On: Jun 27

I will make an applet  which has some basic information, mainly some
numbers that i would like to be stored on a database  on the server.
I want the servlet  to somehow extract those numbers and send them to
the server via servlets... will i be able to do vice-versa, i.e.
retrieve infomation from the server to the applet??

 
Didn't find what you were looking for? Find more on Applets and servlets Or get search suggestion and latest updates.




Tagged: