什么意思,没怎么看明白
如果想传参数,用post或get的方法都可以啊,有什么不可以的?
如果想传参数,用post或get的方法都可以啊,有什么不可以的?
解决方案 »
- tomcat+jsp+mysql+c3p0这几个什么关系
- 【分享】一句话评述主流报表软件
- java如何生成.exe文件
- (急)jsp文件连接sqlserver数据库的问题
- 超级郁闷的问题,在线等。。。图片上传成功,但老显示上一次的图片
- 下拉框怎么写,我忘了!
- 在线等:关于cas单点,非拦截系统A如何获取已登录系统B的UserPrincipal?
- 提交form后,服务器并返回了,但IE进度条还是loading状态,并且IE没有显示服务器返回的页面
- 做了一个音乐站点,支持在线试听,请问能不能动态更新播放列表?
- 解决JBuilder8中JSP不能保存的问题
- 怎样发布我的JSP网站?
- 导出Excel的打印问题!
例如这个:
<SCRIPT>
function go(i) {
switch (i) {
case 0 : top.main.location='http://www.126.com';break;
case 1 : top.main.location='http://ty.35123.net/main/1.htm';break;
case 2 : top.main.location='http://www.beautylove.cn.gs/';break;
case 3 : top.main.location='http://ty.35123.net/main/2.htm';break;
case 4 : top.main.location='http://earth.prohosting.com/dreamfu/';break;
case 5 : top.main.location='http://ty.35123.net/main/4.htm';break;
case 6 : top.main.location='http://ty.35123.net/main/5.htm';break;
case 7 : top.main.location='http://ty.35123.net/main/6.htm';break;
case 8 : top.main.location='作废';break;
case 9 : top.main.location='http://ty.35123.net/main/8.htm';break;
case 10 : top.main.location='http://pugongying.51.net/donghua/1.htm';break;
case 11 : top.main.location='http://mtv.wu123.com/';break;
case 12 : top.main.location='http://ty.666.cc/wish/';break;
case 13 : top.main.location='http://ty.666.cc/riji/';break;
}}
</SCRIPT>
就是能点击的时候直接跳到那个网站!
可以用javascript的window.location='..........';
也可以用jsp的:response.sendRidirect(yoururl);
我的意思是最好别使用如myurl?param1=¶m2=&这样的形式,因为这样的话,我可以查看网页的源代码?就知道你将怎样的数据传送到银行支付的网站上了,这样我可以修改数据,引起许多不必要的麻烦,所以我的希望就是能够将用户提交之前修改数据的途径给封死,
所以 jsp?…… 是可以了,但是我可以看见 ,galewithwing(漂流的风) 所说的
response.sendRidirect(yoururl);也可以,但是在yoururl中还是有?...,还是可以看见,有高手能够给一个例子,使得我没有方法修改你提交的数据吗?
帮帮我啊,这个问题已经花了我400了,还是没有解决,
function go(i) {
switch (i) {
case 0 : top.main.location='http://www.126.com';break;
...
这样的方法确实不错,谢谢,但是怎样禁止篡改数据呢?