使用setAttribute发送到前台jsp页面,为什么用getAttribute获取的只是一些地址值呢?不是实际数据值??,我用getAttribute获取的是下列
[Bean.BookBean@361799b1, Bean.BookBean@848b902, Bean.BookBean@39effc76, Bean.BookBean@77c270f4]地址值,不是实际的数据,为什么??
这是对象,你需要访问具体的字段,比如 对象.xxx
比如你setAttribute("BookBean",BookBean) 你放的是BookBean对象,