• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

posting parameter from applet to JSP

 
Aditya Singh
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Aditya Singh
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No.
 
Aditya Singh
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic