什么意思,没怎么看明白
如果想传参数,用post或get的方法都可以啊,有什么不可以的?

解决方案 »

  1.   

    你直接再想跳转的地方加上那个第三方网址就行呀!
    例如这个:
    <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>
    就是能点击的时候直接跳到那个网站!
      

  2.   

    想传参数过去,1 xxx.jsp?x=x   2 第三方网站必须获取参数否则无效
      

  3.   

    你在url中包括参数就可以了阿!
    可以用javascript的window.location='..........';
    也可以用jsp的:response.sendRidirect(yoururl);
      

  4.   

    我的意思你们什么就不明白呢?
     我的意思是最好别使用如myurl?param1=&param2=&这样的形式,因为这样的话,我可以查看网页的源代码?就知道你将怎样的数据传送到银行支付的网站上了,这样我可以修改数据,引起许多不必要的麻烦,所以我的希望就是能够将用户提交之前修改数据的途径给封死,
    所以 jsp?…… 是可以了,但是我可以看见 ,galewithwing(漂流的风) 所说的
    response.sendRidirect(yoururl);也可以,但是在yoururl中还是有?...,还是可以看见,有高手能够给一个例子,使得我没有方法修改你提交的数据吗?
    帮帮我啊,这个问题已经花了我400了,还是没有解决,
      

  5.   

    不过,
    function go(i) {
    switch (i) {
    case 0 : top.main.location='http://www.126.com';break;
    ...
    这样的方法确实不错,谢谢,但是怎样禁止篡改数据呢?
      

  6.   

    可以用servlet,生成一个form表单,将你要传送的数据以post的方式传递到第三方网站,之后将这个servlet关闭,这样客户端就看不到数据结构了.不知道能解决你的问题不?