Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

jsp and applets, plz help

phattonacephattonace Member Posts: 64
hey, Can somebody please advise me on how to link jsp to an applet. I need the applet to return a number which is fine, I then need that number to be picked up by jsp so it can then be inserted into a mysql database. As soon as JSP has that number, I can do the rest. I just need to know how jsp and applets interact. Any source code, advice or links would be very appreciated. Thanx in advance

hatton306@hotmail.com

Comments

  • treshrtreshr Member Posts: 326
    The easiest way to do this is by using parameters.
    Just send an parameters with your applet to JSP page and let the JSP pick up the parameters and let it interact with the database.

    I think this is what you're looking for, hope it helps you out.


    --=][tReShR][=--

  • phattonacephattonace Member Posts: 64
    thats fine but I dont know how to send the parameters from the applet so that jsp can pick em up. plz help. Paul

  • treshrtreshr Member Posts: 326
    Just use a hyperlink to do that. It would look like this:
    http://somewhere/somepage.jsp?paramname=paramvalue



    --=][tReShR][=--

  • phattonacephattonace Member Posts: 64
    ok, so in the applet say I want a method to return a number, I would just do:

    http://somewhere/somepage.jsp?highscore=50

    so this would return a high score of 50. Then how does JSP pick up that parameter?

    My applet is basically a connect4 game, when the player has finished using the applet, ie. when they have entered the game over state, I want the applet to return their high score. ThenI want JSP to pick that high score up and send it to a server database. Im fine with the database bit - im just unsure about how to pick up the parameter. Thanx for your help already and thanx in advance as well! by the way, do u have an email address at all so that I could add you to my list? thanx, Paul

    ps. mine is - hatton306@hotmail.com
Sign In or Register to comment.