在JSP页面获取后台action封装的参数,这个参数里面又含有两个对象,二层引用,报错

javax.el.PropertyNotFoundException: Property 'userAccount' not found on type java.lang.String
上面是报错信息,
下面是JSP页面:






用户名:${commentlist.userAccount.userName }
职业:${commentlist.userAccount.job }


${commentlist.comment.comments }



/c:forEach

上面${commentlist.userAccount.userName },这样引用对吗?应该怎么引用?

图片说明


${userAccount.userName }
${userAccount.job }
/c:forEach
你试试

${}${}${}/c:forEach