我主要想知道
Exception in thread main
java.lang.ClassCastException: oracle.xml.parser.v2.XMLDocument at exercise.XMLTest.writeXMLFile(XMLTest.java:112) at exercise.XMLTest.main(XMLTest.java:128)Process exited with exit code 1.是什麼原因!!
修改好,50全給..修改不好,一分不給..

解决方案 »

  1.   

    没分了
    借宝地问个问题:
    form里面可以有form嵌套吗?
    另外,
    <td width="30%">&nbsp;<input type="text" name="license_add" value="" size="15" maxlength="12"></td>
          <td width="20"><input type="button" name="produce" value="生成序列号">
    点击button按钮后希望text的value的值不在为空能实现吗?
      

  2.   

    <script language="javascript">
    function producelicense(license){      document.theform.license_add.value=license;
    }
    </script>
    <form name="theform" method="post">
    <tr>
    <td width="20"><input type="button" name="produce" value="生成序列号" onclick="javascript:producelicense("<%=StringUtil.getRandomLicense(16)%>")"><td>      <td width="30%">&nbsp;<input type="text" name="license_add" value="" size="15" maxlength="12" readonly="true"></td>
    </tr>
    </form>
    这样为什么不行啊?
      

  3.   

    TO:shandd(猜不透) 
    这样试一试
    onclick="javascript:producelicense(<%=StringUtil.getRandomLicense(16)%>)"