how to put data in session variable and get the data in different page in vaadin?

后端 未结 3 1385
囚心锁ツ
囚心锁ツ 2020-12-10 06:52

I think I should use the application scope session to deal with that. But I do not have any experience about that. I tried different ways I got from the internet like:

3条回答
  •  庸人自扰
    2020-12-10 07:49

    You can use a ThreadLocal variable to keep your data. You then get the data from the variable and clean it. Don't forget to make your variable public and static to reach it from another class.

提交回复
热议问题