Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Java (https://www.askmehelpdesk.com/forumdisplay.php?f=440)
-   -   Applets and Jsps - calling and passing parameters (https://www.askmehelpdesk.com/showthread.php?t=362246)

  • Jun 6, 2009, 11:04 PM
    akshaykulkarni
    Applets and Jsps - calling and passing parameters
    I have an applet which calls lots of jsps from within itself. There are many parameters being passed to the jsp pages. Currently, the parameters are passed by forming a query string, making a URL object and calling the showDocument method on the AppletContext. But this is a concern from application security point of view. I would like the parameters to be passed without displaying the same in the url. Is there a way to do that? Is it possible to POST the parameters from inside the applet? If there is, can anyone please provide an example so that I can try to use the same?

    I have to find a solution by tomorrow.

    Thanks in advance.
  • Jun 9, 2009, 11:04 AM
    LanMan
    Take a look at the Apache HttpComponents project (HttpComponents - HttpComponents Overview). You can do a post using some of the classes it contains. Another option would be to use JavaScript. Have the applet, via Javascript, complete and post an HTML form. This would be a bit more involved though.

    p.s. there is an example of a basic POST using the HttpComponents at the Apache site. Just click on the 'examples' link on the left side menu.

  • All times are GMT -7. The time now is 03:10 PM.