`

target is null for setProperty

web 
阅读更多
问题:ognl.OgnlException: target is null for setProperty(null, "offset", [Ljava.lang.String;@1667f3c)

场景:列表页面添加根据起始终止时间查询功能,当添加时间后点击搜索报上述错误

代码如下:

web中

private ScheduleTracking scheduleTracking ;
//添加该属性的set get 方法


页面中

<div class="o-search clearfix"> 
<label for="m-time">创建时间:</label>
<input id="m-time" class="ipt-text pl7 i-w89 " type="text" id="startTime" name="scheduleTracking.startTime" value="$!scheduleTracking.startTime"/>
<a class="date j-date" href="javascript:void(0)"></a>
<label class="plr4">到</label>
<input class="ipt-text pl7 i-w89" type="text" id ="endTime" name="scheduleTracking.endTime" value="$!scheduleTracking.endTime"/>
<a class="date j-date" href="javascript:void(0)"></a>
<a href="javascript:;" class="btnNew ml4"><span class="binner btnNew25-c"><input type="submit" class="btext w68" value="搜索" /></span></a>
</div>


解决:

参考资料:http://wjlvivid.iteye.com/blog/1766681

1.接收值的po对象,scheduleTracking 不被识别,所以找不到
2.换一个名称 schedule 问题解决
3.没有对po类进行set get方法 或 在po类中是否对调用属性未进行set get 方法

总结:通过po对象接收数据,对象名称中不能包含大写字母,否则会接收不到属性值

分享到:
评论

相关推荐

    Qemu-1.0.1 for windows

    set a global default for a driver property -mtdblock file use 'file' as on-board Flash memory image -sd file use 'file' as SecureDigital card image -pflash file use 'file' as a parallel flash image -...

    weapp.qrcode.js

    var setProperty = function setProperty(target, options) { if (defineProperty && options.name === '__proto__') { defineProperty(target, options.name, { enumerable: true, configurable: true, ...

    FastReport.v4.15 for.Delphi.BCB.Full.Source企业版含ClientServer中文修正版支持D4-XE5

    + [enterprise] added property "Html" - "URLTarget" in server configuration - allow select the target attribute for report URLs + [enterprise] added property "ReportsFile" - path to file with reports ...

    微软内部资料-SQL性能优化3

    For example, if T1 writes some object that is in T2’s input or output set, there is a dependency between T1 and T2. Bad Dependencies These include lost updates, dirty reads, non-repeatable reads, ...

    ap6212a0_a33_sc3817r_神舟验证版本_借用nvram_ap6210这个配置文件_20170626_1834没有外层目录.7z

    [ 3.968638] [mmc]: sdc2 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B [ 3.968734] [mmc]: mclk 0xf1c20090 0xc100000b [ 3.989421] Bluetooth: BNEP filters: protocol ...

    带注释的Bootstrap.java

    System.setProperty( Globals.CATALINA_HOME_PROP, catalinaHomeFile.getPath()); // Then base String base = System.getProperty(Globals.CATALINA_BASE_PROP); //设置catalinaBaseFile if (base == null)...

    acpi控制笔记本风扇转速

    Disassembler - fix for error emitted for unknown type for target of scope operator. Now, ignore it and continue. Disassembly of an FADT now verifies the input FADT and reports any errors found. Fix ...

    Delphi7.1 Update

    * When updating blob fields in a TClientDataset with the LogChanges property set to False, blob data is lost from other unrelated records (Quality Central 6591). * Using a Filter or Locate with a ...

    qemu-0.13.0(编译过全处理器支持)

    set a global default for a driver property -mtdblock file use 'file' as on-board Flash memory image -sd file use 'file' as SecureDigital card image -pflash file use 'file' as a parallel flash image -...

    网页制作完全手册

    In this example, there are two widths: an extended property set within the object element, and a property belonging to the control that is set using the param element. To access these from script, you...

    FastReport 4.9

    + [enterprise] added property "Html" - "URLTarget" in server configuration - allow select the target attribute for report URLs + [enterprise] added property "ReportsFile" - path to file with reports ...

    Fast Report Enterprise v4.9.32 Full Source

    + [enterprise] added property "Html" - "URLTarget" in server configuration - allow select the target attribute for report URLs + [enterprise] added property "ReportsFile" - path to file with reports ...

    C# ListView 支持分组时拖拉排序的控件

    // the InsertionMark.AppearsAfterItem property accordingly. Rectangle itemBounds = this.GetItemRect(targetIndex); if (targetPoint.X &gt; itemBounds.Left + (itemBounds.Width / 2)) { this....

    ap6212a0_a33_sc3817r_服务器验证通过_bt已经通了_wifi需要修改配置_需要再次验证_20170626_1549.7z

    [ 3.968638] [mmc]: sdc2 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B [ 3.968734] [mmc]: mclk 0xf1c20090 0xc100000b [ 3.989421] Bluetooth: BNEP filters: protocol ...

    stdafx.h代码

    // a target for user commands class CWnd; // a window / HWND wrapper class CDialog; // a dialog // standard windows controls class CStatic; // Static control class CButton; // Button control ...

    springmybatis

    public void setId(int id) { this.id = id; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public String getUserAge()...

    flash action script 经典字典教程大全,学flash必备

    _target Button._target、MovieClip._target、TextField._target _totalframes MovieClip._totalframes _url Button._url、MovieClip._url、TextField._url _visible Button._visible、MovieClip._visible、...

    !!!!ap6212a0_a33_sc3817r_验证通过_修正wifi的配置文件为nvram_ap6212.txt

    [ 3.968638] [mmc]: sdc2 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B [ 3.968734] [mmc]: mclk 0xf1c20090 0xc100000b [ 3.989421] Bluetooth: BNEP filters: protocol ...

    应用Dephi 开发佳能照相机API

    * Description: This is the Sample code to show the usage of EDSDK. * * * * * ******************************************************************************* * * * Written and developed by Camera ...

    tomcat8 + nginx + memcached + cas 实现负载均衡的配置包

    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; index index....

Global site tag (gtag.js) - Google Analytics