首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

添加报IllegalArgumentException occurred calling getter异常

2012-03-28 
添加报IllegalArgumentException occurred calling getter错误webwork2hibernate spring 一对多关系一个表

添加报IllegalArgumentException occurred calling getter错误
webwork2 hibernate spring 一对多关系
一个表放表名,一个表放表字段
下面是jsp页面
<%@ page contentType="text/html; charset=UTF-8" %>
<%  
  response.setHeader("Pragma","no-cache");  
  response.setHeader("Cache-Control","no-cache");
  response.setHeader("Cache-Control", "no-store");  
  response.setDateHeader("Expires",0);
%>
<%@ taglib prefix="ww" uri="webwork"%>
<%@ taglib uri="pm" prefix="pm"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>新增数据字典</title>
<link href="css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/Validation.js"></script>
<script type="text/javascript" src="js/pagination.js"></script>
<script type="text/javascript" src="js/showWindow.js"></script>
<script type="text/javascript" src="js/jquery/jquery-1.3.min.js"></script>
<script type="text/javascript" src="js/My97DatePicker4.6/WdatePicker.js"></script>
<script type="text/javascript" src="js/showErrorsAndMessages.js"></script>
<script type="text/javascript" src="js/math.js"></script>
<script type="text/javascript">
function showExactQueryChart(){
if(!checkTable()) return;
$("#exactQueryChart").show();
$("#exactQueryChart").css("position","absolute");
$("#exactQueryChart").css("z-index","100000");
$("#exactQueryChart").fadeIn("normal");
}
function closeExactQueryChart(){
$("#exactQueryChart").hide();
$("#exactQueryChart").css("z-index","0");
}
function insertExactRow(){
if(!check()) return;
insertRow($("#name1_id").val(),$("#label1_id").val(),$("#dttp_id").val(),$("#maxlen_id").val(),$("#prec_id").val(),$("#descs1_id").val());
clearExactOldValue();
}
function deleteThisRow(obj){
obj.parentNode.parentNode.parentNode.removeChild(obj.parentNode.parentNode);
if($("input[name='name1']").size() == 0){
$("#chooseDoc70noAref_id").show();
}
}
function insertRow(qty,csprc,csamt,pkqty,casqty,pcsqty){
var isExistPluid = "false";
$("input[name='name1']").each(
function(){
if($(this).val() == name1){
isExistPluid = "true";
return;
}
}
);
var str="<tr>";
str+="<td ><img src='images/c.gif' border='0' style='cursor: pointer;' onclick='deleteThisRow(this);'/></td>";
str+="<td align='right'><input type='text' style='width:134px' name='name1' class='input_number_disable' value='"+qty+"'></td>";
str+="<td align='right'><input type='text' style='width:134px' name='label1' class='input_number_disable' value='"+csprc+"'></td>";
str+="<td align='right'><input type='text' style='width:134px' name='dttp' class='input_number_disable' value='"+csamt+"'></td>";
str+="<td align='right'><input type='text' style='width:134px' name='maxlen' class='input_number_disable' value='"+pkqty+"'></td>";


str+="<td align='right'><input type='text' style='width:134px' name='prec' class='input_number_disable' value='"+casqty+"'></td>";
str+="<td align='right'><input type='text' style='width:134px' name='descs1' class='input_number_disable' value='"+pcsqty+"'></td>";
str+="</tr>";
var insertTr=$(str);
$("#doc49dtTBody").append(insertTr);
$("#chooseDoc70noAref_id").hide();
}
function clearExactOldValue(){
$("#name1_id").val("");
$("#label1_id").val("");
$("#dttp_id").val("");
$("#maxlen_id").val("");
$("#prec_id").val("0");
$("#descs1_id").val("");
}

function checkTable(){
var flag=true;
if($("#name_id").val()==""){
alert("表名称不能为空");
$("#name_id").focus();
flag=false;
return flag;
}else if($("#label_id").val()==""){
alert("中文描述不能为空");
$("#label_id").focus();
flag=false;
return flag;
}
return flag;
}
function check(){
var flag=true;
if($("#name1_id").val()==""){
alert("字段名不能为空");
$("#name1_id").focus();
flag=false;
return flag;
}else if($("#label1_id").val()==""){
alert("中文描述不能为空");
$("#label1_id").focus();
flag=false;
return flag;
}else if($("#maxlen_id").val()==""){
alert("字段长度不能为空");
$("#maxlen_id").focus();
flag=false;
return flag;
}else if($("#prec_id").val()==""){
alert("字段精度不能为空");
$("#prec_id").focus();
flag=false;
return flag;
}
return flag;
}
function check1(){
var flag=true;
if($("#name_id").val()==""){
alert("表名称不能为空");
$("#name_id").focus();
flag=false;
return flag;
}else if($("#label_id").val()==""){
alert("中文描述不能为空");
$("#label_id").focus();
flag=false;
return flag;
}
return flag;
}
function startMove(o,e){
var wb;
if(document.all && e.button==1){
wb=true;
}else if(e.button==0){
wb=true;
}
if(wb){
var x_pos=parseInt(e.clientX-o.parentNode.offsetLeft);
var y_pos=parseInt(e.clientY-o.parentNode.offsetTop);
if(y_pos<=o.offsetHeight){
document.documentElement.onmousemove=function(mEvent){
var eEvent=(document.all)?event:mEvent;
o.parentNode.style.left=eEvent.clientX-x_pos+"px";
o.parentNode.style.top=eEvent.clientY-y_pos+"px";
}
}
}
}

function stopMove(o,e){
document.documentElement.onmousemove=null;
}

</script>


</head>

<body class="body_win" onload="onloadFieldError();" >
<div id="exactQueryChart" style="width:320px;height:300px;top:150px;left:200px;position:absolute;border:2px solid #d9d9d9;background:#FFF;z-index:999;display:none">
<div style="height:20px;line-height:20px;background-color:#b5cdfe;" onMouseDown="startMove(this,event)" onMouseUp="stopMove(this,event)">
<div>
<div style="float:left;width:240px;font-size:12px;color:#456bb9;font-weight:bold;padding-left:8px;" ><ww:text name='application.add' />明细</div>
<div style="float:right;width:60px;">


<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="middle">&nbsp;</td>
<td valign="middle">&nbsp;</td>
<td valign="middle" >
<a href="javascript:closeExactQueryChart();void(0)";onblur="check()"><img src="images/c.gif" alt="关闭" border="0"/></a>
</td>
</tr>
</table>
</div>
<div class="clear"></div>
</div>
</div>

<div class="main_bodyr3" style="width:100%;height:100%;background:url(images/111-81.jpg);">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right" class="font3"><ww:text name="字段名" />:</td>
<td valign="middle">
<input class="input1" type="text" name="name1" id="name1_id" onblur="isNotNull(this.id)" onkeyup="value=value.replace(/[\W]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"/>
</td>
<td align="left" class="font3">*字母数字</td>
</tr>
<tr>
<td align="right" class="font3"><ww:text name="中文描述" />:</td>
<td valign="middle" align="left">
<input class="input1" type="text" name="label1" id="label1_id" onblur="isNotNull(this.id)" />
</td>
<td align="left" class="font3">*</td>
</tr>
<tr>
<td align="right" class="font3"><ww:text name="数据类型" />:</td>
<td valign="middle" align="left">
<select class="input1" name="dttp" id="dttp_id">
<option value="VARCHAR2">varchar2</option>
<option value="NVARCHAR2">nvarchar2</option>
<option value="NUMBER">number</option>
<option value="date">date</option>
<option value="timestamp">timestamp</option>
<option value="clob">clob</option>
<option value="blob">blob</option>
<option value="char()">char()</option>
<option value="long">long</option>
<option value="binary_float">binary_float</option>
<option value="binary_double">binary_double</option>
<option value="nclob">nclob</option>
<option value="raw()">raw()</option>
</select>
</td>
</tr>
<tr>
<td align="right" class="font3"><ww:text name="字段长度" />:</td>
<td valign="middle">
<input class="input1" type="text" name="maxlen" id="maxlen_id" onblur="isNotNull(this.id)" onkeyup="value=value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"/>
</td>
<td align="left" class="font3">*数字</td>
</tr>
<tr>


<td align="right" class="font3"><ww:text name="精度" />:</td>
<td valign="middle">
<input class="input1" type="text" name="prec" id="prec_id" value="0" onblur="isNotNull(this.id)" onkeyup="value=value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"/>
</td>
<td align="left" class="font3">*数字</td>
</tr>
<tr>
<td align="right" class="font1"><ww:text name="备注" />:</td>
<td valign="middle">
<input class="input1" type="text" name="descs1" id="descs1_id" />
</td>
</tr>
<tr>
<td colspan="2" align="center">
<a href="javascript:insertExactRow();void(0);"><ww:text name='application.add' /></a>
</td>
</tr>
</table>
</div>
</div>



[解决办法]
好长啊
[解决办法]
神贴啊

热点排行