how to pass and receive a value from jsp to applet

Discussions

Web tier: servlets, JSP, Web frameworks: how to pass and receive a value from jsp to applet

  1. hi
      all
         can any one help me out by sending a code in jsp and applet so that from jsp page a value can be sended to applet and how can i receive it in the applet?
    mail me in : duttagoutam at hotmail dot com
    goutam
  2. You can pass parameters to applet by using param tag inside applet tag. Applet takes parameter passed like this using getParameter(parametername) method.
    The syntax for passing the parameter is
    <applet ....>
    <param name="paramname" value="paramvalue">
    <param name="paramname" value="paramvalue">
    </applet>

    in JSP you can use like
    <applet ....>
    <param name="Param1" value="<%=cParameterValue1%>">
    <param name="Param2" value="<%=cParameterValue2%>">
    </applet>