Hi,
I have this servlet : UseBeanTest.java
and this JSp : result.jsp
Person is a simle Java Bean having property "name".
When I access the Servlet, the output is
Person from getProperty: TestUser
Person from session:
I am not able to understand why "TestUser" is not shown in second line, since a session scoped attribute is successfully set, as verified by first line,
it works fine and TestUser is shown in both lines in these two cases
a) If I comment out the line 1) in servlet
b) Reverse the attribute scopes in Servlet and Jsp, i.e uncomment the lines 2) and 3) in Servlet and use scope = "request" in jsp
Please help me understanding the logic behind these observations
Regards.
Nitin