Forum Stats

  • 3,769,913 Users
  • 2,253,030 Discussions
  • 7,875,236 Comments

Discussions

setting via browser session attribute

francy77
francy77 Member Posts: 260 Bronze Badge
edited Apr 6, 2018 11:48AM in Java User Groups Discussions

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

Answers