I'm stuck with a problem:
- i have an array of object in vuejs
TablePlayers[] this.TablePlayers.push({'message': this.returnmsg, 'player': true, 'Time': time});
- i send it to my java controller with:
axios.get("http://localhost:8080/SetTablePlayers/"+this.TablePlayers)
then i add this table of object to java session with :
HttpSession session = request.getSession();
session.setAttribute("TablePlayers", TablePlayers);
3.and when i would get this object from session :
TablePlayers= (List<Players>)session.getAttribute("TablePlayers");
it returns null
.
how can i fix that thanks, and this is right?