JavaScript中如何给JSP变量赋值? 我想你提这种方法是不可能的。只能用JavaScript付值给网页上的一个元素,然后提交页面,在下个页面用JSP得到。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 It's impossible.You should know,javascript is run at the client,and the java code in the JSP is run at the server,JSP generate html which contains the javascript and send it to the client,so what you want is impossible to accomplish. 楼主首先要搞清楚前台和后台的区别。你可以用form进行提交呀! 这个应该是不可能的,JSP是在服务器端运行的,javascript是在客户段运行的 区分java和js运行的时间,运行地方 100分 再次求助 金政GOV程序数据库连接出错 搜索引擎爬虫问题 请教 如何学习java web 请问各位大大个关于myeclipse的问题 关于tomcat的问题,请高手指点下 点击个超级连接后提交相应的数据去一个页面处理 初学bean,前来向各位学习请教 请问为什么不能删除纪录 如何实现将客户机上的word文件,以B/S方式最终存入oracle数据库? 想做一个基于jsp,servlet的电子商务网站(尽全力的散分234) servlet的配置问题 大侠救命啊:org.apache.jasper.JasperException: 流已被关闭 这是什么原因造成的啊
You should know,javascript is run at the client,and the java code in the JSP is run at the server,JSP generate html which contains the javascript and send it to the client,so what you want is impossible to accomplish.