Solved

communication between servlet and untrusted applet

Posted on 2002-03-09
2
160 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Issues installing SSL certificate into Apache Tomcat 3 70
network + 7 73
computer science syllabus 3 52
word0 challenge 4 53
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now