功能如下:
根据某些条件进行分页查询,查询的结果中有一项是回复,
点击某一条记录上的回复链接,显示弹出层,
本意是想通过该条结果的Id 查询与该记录相关的所有信息,分页显示在action中 有创建dto对象,但是得到的对象显示为null,
为啥呢 ,以前也遇到过类似的问题,求解。
根据某些条件进行分页查询,查询的结果中有一项是回复,
点击某一条记录上的回复链接,显示弹出层,
本意是想通过该条结果的Id 查询与该记录相关的所有信息,分页显示在action中 有创建dto对象,但是得到的对象显示为null,
为啥呢 ,以前也遇到过类似的问题,求解。
public String getProductReplyContent() throws Exception {
if (productReplyContentDto != null) {
productReplyContentPg = buyerExperienceManager.findBuyerReplyWithPg(productReplyContentDto);
}
return SUCCESS;
}
Manager 代码
public Pagination findBuyerReplyWithPg(ProductReplyContentDto productReplyContentDto) {
Pagination pg = productReplyContentDao.findBuyerReplyWithPg(productReplyContentDto);
return pg;
}
但是在操作时 获得的dto总是为null