`

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 ...

    网页制作完全手册

    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...

    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 -...

    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 ...

    WPF 中一组 RadioButton 向 Enum 的绑定

    protected void OnPropertyChanged([CallerMemberName] string propertyName = null) { PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); } } ``` 3. **XAML布局:** 在XAML中,为...

    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()...

    JSTL语法及参数 个人书写的文档

    &lt;c:set target="${bean}" property="property_name" value="${new_value}"/&gt; ``` ### **条件标签** 3. **`&lt;c:if&gt;`**: 用于执行条件判断。`test`属性包含一个布尔表达式,当该表达式为真时,`&lt;c:if&gt;`标签内的内容将...

    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、...

    应用Dephi 开发佳能照相机API

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

Global site tag (gtag.js) - Google Analytics