File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes posting parameter from applet to JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "posting parameter from applet to JSP" Watch "posting parameter from applet to JSP" New topic
Author

posting parameter from applet to JSP

Aditya Singh
Ranch Hand

Joined: Mar 06, 2008
Posts: 62
Hi,

To send control from applet to jsp we call context.showDocument(url). I am sending some parameter by appending them with query string.

I am wondering if there is some way to send parameter in the body of request. In other word calling it like post?

Thanks in advance.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41839
    
  63
Not using showDocument. You can use the HttpURLConnection class to send a POST request to a JSP, but that will not replace the current page like showDocument does.


Ping & DNS - my free Android networking tools app
Aditya Singh
Ranch Hand

Joined: Mar 06, 2008
Posts: 62
Thanks Ulf.

I am using HttpUrlConnection to communicate to servlet and its working fine.
Is there any way to pass control and post data to jsp page at the same time?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41839
    
  63
No.
Aditya Singh
Ranch Hand

Joined: Mar 06, 2008
Posts: 62
Thanks Ulf.

I din't expected answer as NO, I thought there must be some work around?

Currently I am encrypting parameter passed to JSP so that user don't understand about them.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: posting parameter from applet to JSP