Skip to Main Content

Java User Groups

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

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
233 views