天翎MyApps技术社区 - 低代码平台 | 流程管理系统 | BPM软件

 找回密码
 注册成为天翎用户
12
返回列表 发新帖
楼主: 西北有色

[已解决] sp8 套打问题

[复制链接]
 楼主| 西北有色 发表于 2013-11-29 16:28:25 | 显示全部楼层
回复 10# echochen

   不行的
 楼主| 西北有色 发表于 2013-11-29 16:39:49 | 显示全部楼层
回复 11# 西北有色


    你好,我把我的代码贴出来您帮我看看吧:
  1.视图按钮下的脚本:
  var  selectArray  =getParameter("_selects");
println("selectArray :::"+selectArray);
var checkSelects  = splitText(selectArray,";");
//获取request
var url;
if(checkSelects != null && checkSelects.length > 0){
var url1 = "http://192.168.2.102:880/obpm";
url="/portal/share/report/runqianreport/heihei.jsp?type="+checkSelects[0];
url1=url1+url;
println("URL :"+url1);
}
url1;


2.jsp页面:
<%@ page contentType="text/html; charset=UTF-8" language="java" import="java.sql.*" errorPage="" %>
<%@ taglib uri="runqianReport4" prefix="report" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>testJsp</title>
</head>

<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0">
  <%
       String params="type="+request.getParameter("type");  //获取链接中的参数值
       out.println(params+"   ======ttt==");
  %>
  <report:html name="sql"  params="<%=params%>" needSaveAsExcel = "yes" needPrint = "yes" srcType="file" reportFileName="局.raq" saveAsName="sql" />
</body>
</html>

3.润乾配置文件:
<jdbc-ds-configs>
      <jdbc-ds-config>
       <name>North</name>
       <db-type>ds1</db-type>
       <connection-url>jdbc:jtds:sqlserver://192.168.2.101:1433/NWME_OA</connection-url>
       <driver-class>net.sourceforge.jtds.jdbc.Driver</driver-class>
       <user-name>sa</user-name>
       <password>x=85521626</password>
       <db-charset>GBK</db-charset>
       <client-charset>GBK</client-charset>
       <extend-properties></extend-properties>
      </jdbc-ds-config>
    </jdbc-ds-configs>

就这些了,我刚刚用按钮是跳转 换了一个空白的jsp页面来调试,下内容就是hello,heihei heihei  在前台显示
QQ截图20121123163238.png

这个错误提示我那个jsp 页面找不到路径,可是我的路径是对的。就在这下面放着呢。
您可以在本地测试下。
sophie 发表于 2013-11-30 00:38:50 | 显示全部楼层
您好,用您提供的参数,本地测试是可以正常跳转过去显示的,我看了一下您的代码中,你的ip地址端口为880,您检查一下您现在使用的端口是否为880,如果不是,则修改一下正确的端口,再尝试看一下是否能正常连接。
 楼主| 西北有色 发表于 2013-11-30 09:50:13 | 显示全部楼层
回复 13# sophie


    你好 那个端口是正确的 客户他们改的 有时间看看我这边的效果嘛  我这边不行哦
sophie 发表于 2013-12-1 11:30:05 | 显示全部楼层
该问题Q上客户沟通,周一远程看效果排查。
sophie 发表于 2013-12-2 10:31:53 | 显示全部楼层
该帖子可以关闭了,是客户那边的端口的问题,修改端口后可以正常连接了。

本版积分规则

QQ|手机版|天翎MyApps技术社区 ( 粤ICP备11093750号 )

GMT+8, 2026-8-13 07:28

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表