java applet传参和接收

1.jsp页面传参

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

    <head>

<%

String url=request.getParameter("url");

String fileName=request.getParameter("fileName");

request.setAttribute("url",url);

request.setAttribute("fileName",fileName);

 %>

    </head>

    <body>

<center>

       <applet code="JoinconfApplet.class" archive="econference.jar" name="econf"

           width="0" height="0" MAYSCRIPT>

           <PARAM NAME="url" VALUE="${url }">

           <PARAM NAME="fileName" VALUE="${fileName }">

       </applet>

</center>

    </body>

</html>

2.java applet接受参数

        String url = getParameter("url");
        String fileName = getParameter("fileName");

posted @ 2013-02-28 13:06  嗨,你的益达~~~  阅读(450)  评论(0编辑  收藏  举报