java - An object is set in the session, but cannot be retrieved in Jsp
我想大声告诉你
我想大声告诉你 2017-06-23 09:14:28
0
4
1018

Inside session

session.setAttribute("user",user);

Then get

in jsp
${user.reader_name}

I have never been able to get it, but I can get his toString return value directly from ${user}

getset has been written
HELP

我想大声告诉你
我想大声告诉你

reply all(4)
我想大声告诉你

What you get from jsp are all strings. How can strings have attributes?
var obj=JSON.parse("${user}")

滿天的星座

Requires serialization and deserialization

世界只因有你

Sorry. . . I made a strange mistake in one place
The reader_name attribute of the object was not assigned a value at all, so its default value was used

学霸

spring and springMVC seem to work

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template