Myeclipse软件中的jsp问题!
<P><BR>Myeclipse软件中的jsp问题!</P><P>请教高手:::::::::::::::::::<BR>用Myeclipse软件中的jsp,jsp中的<form>标签为什么不能给name属性?(给就会错)<BR>如果我想在同页面的"脚本"中得到<form>中的值,应该怎样得到?<BR></P>
<P><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><BR><html><BR> <head><BR> <base href="<%=basePath%>"><BR> <BR> <title>My JSP 'test.jsp' starting page</title><BR> <BR> <meta http-equiv="pragma" content="no-cache"><BR> <meta http-equiv="cache-control" content="no-cache"><BR> <meta http-equiv="expires" content="0"> <BR> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"><BR> <meta http-equiv="description" content="This is my page"><BR> <!--<BR> <link rel="stylesheet" type="text/css" href="styles.css"><BR> --><BR> <script type="text/javascript"><BR> function get()<BR> {<BR> var form = document.getElementById("myform");<BR> alert(form.name);<BR> }<BR> </script><BR> </head><BR> <BR> <body><BR> <form id="myform" action="" method="POST" name="<a href='http://www.it.com.cn" target="_blank" ></form'>www.it.com.cn"></form</A>> //但是我用name的时候没有出错啊<BR> <button onClick="get()">Get</button><BR> </body><BR></html></P> <meta http-equiv="pragma" content="no-cache"><BR> <meta http-equiv="cache-control" content="no-cache"><BR> <meta http-equiv="expires" content="0"> <BR> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"><BR> <meta http-equiv="description" content="This is my page"><BR><BR>这些是干什么用的??? 没有什么用的。myEclipse自动生成,你可以删掉它,不会影响运行的 袄...我用的是5.0版本的.....没看到!<BR>谢谢!!!!
页:
[1]
