developers

    Forum Stats

  • 3,873,729 Users
  • 2,266,635 Discussions
  • 7,911,624 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

developers