PPLET> <p><input type=hidden name="name"></p> <p><input type=hidden name="password"></p> <script language=JScript> function processApplet() { parent.myForm.name.value = abc.getName(); parent.myForm.password.value = abc.getPassword(); /* alert("Sent to form: Image Name: "+ parent.myForm.name.value + " Image Number: "+ parent.myForm.password.value); */} </script> <input type=submit value=" 确认" style="width:100px;height:30px" language="JScript" onClick="processApplet();"> </form> </center> </BODY> </HTML> 登陆成功界面: 代码如下所示: <%@page contentType="text/html;charset=gb2312"%> <html> <head> <title> 登陆</title> </head> <body> <center> <h1> 登陆范例——用户名及密码固定</h1> <hr> <br> <br> <h2> 登陆成功</h2> <h3> 欢迎<font color="red" size="15"> <%=request.getParameter("name")%> </font> 光临!!! </h3> </center> </body> </html>