Skip to Main Content

Java User Groups

setting via browser session attribute

francy77Apr 6 2018 — edited Apr 6 2018

Hi all,

i need (for testing purpose) to set a bean in a session with some thing like modify header plugin;

I have to prevent this statments to get null:

return (UserBean) request.getSession().getAttribute("UserBean");

where UserBeen is a java class that contain

private String cognome;

private String nome;

and setter and getter.

thanks

Comments
Post Details
Added on Apr 6 2018
2 comments
125 views