求各位高手帮个忙,我是用jsp来做的
我提交输入信息account和yewu后就进入后台
那个是我后台代码,应该怎样改的好,
<%@ page language="java"%>
<%@ page import="java.sql.*"%>
<%@ page contentType="text/html;charset=GB2312"%>  
 <jsp:useBean class="opendb.opendb" id="plog" scope="page"></jsp:useBean> <%    
  //  从上页提交来的数据
   String unit_ID=new String(request.getParameter("account").getBytes("8859_1"));
     String unit_name=new String(request.getParameter("yewu").getBytes("8859_1"));
%><%访问别人网站("http://----anluo/check.aspx?account="+unit_ID+"&&yewu="+unit_name+"");%>
返回xml文件
.
.
.
读取xml文件 <% 
   //保存到我们的数据库
 String sql="insert into dianxin(unit_ID,unit_name,ename,cardno,corporation,property,trade) values('"+unit_ID+"','"+unit_name+"','1','"+cardno+"','"+corporation+"','"+property+"','1')";
   plog.executeUpdate(sql);
      //提示用户成功
    response.sendRedirect("s_zhuceOK.jsp");
%>

解决方案 »

  1.   

    ,<?xml version="1.0" encoding="gb2312" ?> 
    - <custinfo>
      <acc>757882</account>    
      <yew>ZDDHF02</yewu>          
      <cert>440624490</cert>     
      <name>黄安</name>               
       <tel>88228701</tel>                
      </custinfo>
    那个就是xml文件
      我们在后台访问别人网站,别人返回xml文件,我们在读取xml文件的数据
    并保存在数据库理
      

  2.   

    有位高手也给我一个例子
    到具体的我还不知道怎样调用
     cds27(冰封) ( ) 信誉:98  2006-05-23 10:00:00  得分: 0  var xmlHttp = new ActiveXObject("MSXML2.xmlHttp.3.0");
    xmlHttp.onreadystatechange=onReady;
    xmlHttp.open("GET", "http://---anluo/check.aspx?acc=fsgmxx8&yew=19849scoreId");
    xmlHttp.send();function onReady() {
    if(xmlHttp.readyState==4) {
    var root=xmlHttp.responseXML.documentElement;

    for(var i=0;i<root.childNodes.length;i++)
    alert(root.childNodes[i].nodeName+" : "+root.childNodes[i].text)

    }
    }
      

  3.   

    xml文件是以
    http://61.142.251.10/anluo/xmldoc/[email protected]
    的形式返回的
    我们读取数据
    保存在数据库里