Solved

communication between servlet and untrusted applet

Posted on 2002-03-09
2
164 Views
Last Modified: 2013-11-24
Hi Guys,

   How servlet communicates with an untrusted applet??

thanks.
stephen
0
Comment
Question by:zollen
  • 2
2 Comments
 
LVL 7

Accepted Solution

by:
Igor Bazarny earned 50 total points
ID: 6854468
Hi,

Same way as untrusted applet communicates with server it was loaded from. Servlets are typically visible as http resources to outside world, so there is not much difference between servlet and static html page in the security sence. Applet can form a request and send it to the servlet, then process servlet's responce. If servlet client is known to be applet, you can use serialization as communication protocol.

If you want servlet to be active, security permissions don't allow untrusted applet to create server socket, but applet could poll servlet state and handle requests when needed.

Regards,
Igor Bazarny,
Brainbench MVP for Java 1
www.brainbench.com


 
0
 
LVL 7

Expert Comment

by:Igor Bazarny
ID: 6859996
Any comment about 'C' grade? Any other question left?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
javap bin 2 40
varialbe initialization 11 37
going to wrong jsp page 2 33
Setup GlassFish 4 21
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question