File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Applet and Servlet Communication : Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet and Servlet Communication :" Watch "Applet and Servlet Communication :" New topic

Applet and Servlet Communication :

Anbarasu Selvaraj

Joined: Mar 07, 2006
Posts: 21
Applet is trying to communicate servlet. (It is communicating), after some process in servlet i am passing control to jsp (via response.sendRedirect). but i am receiving the error like bellow access denied (java.util.PropertyPermission http.strictPostRedirect read)
at Source)
at Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at java.lang.Boolean.getBoolean(Unknown Source)
at Source)
at Source)
at EchoApplet.onSendData(
at EchoApplet.access$000(
at EchoApplet$1.actionPerformed(
at java.awt.Button.processActionEvent(Unknown Source)
at java.awt.Button.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at Source)

Please advise.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Using a client-side redirect does not make sense during applet/servlet communication. Either do a forward on the server side, or -if you want to replace the page that shows the applet in the browser- use AppletContext.showDocument in the applet.
I agree. Here's the link:
subject: Applet and Servlet Communication :
It's not a secret anymore!