javula
03-08-2007, 11:09 AM
Hello there!
I'm working on a web-tier application. I use java, jsp and mysql database. it's my first project, so i don't have lot of experience and knowledge.
My project is about assigning students a seat in lab classrooms.
So, at some point the teacher will fill out a form and submit it. The form's parameters are processed within a servlet and an output(jsp page) with diagrams/charts will appear.
In order for these charts to appear, i save the object(which contains the appropriate data) to the session. Like:
session.setAttribute("objectName", object);
The charts are created in the jsp page.
The problem is that when i go to the main page or to another page and then go back to the charts' page i can no longer see the charts.
I check with a javascript if the object is null and it seems that it is.
The session has not timed out.
Does the attribute no longer exist?
sorry if i'm not well understandable.
Thanx in advance :)
I'm working on a web-tier application. I use java, jsp and mysql database. it's my first project, so i don't have lot of experience and knowledge.
My project is about assigning students a seat in lab classrooms.
So, at some point the teacher will fill out a form and submit it. The form's parameters are processed within a servlet and an output(jsp page) with diagrams/charts will appear.
In order for these charts to appear, i save the object(which contains the appropriate data) to the session. Like:
session.setAttribute("objectName", object);
The charts are created in the jsp page.
The problem is that when i go to the main page or to another page and then go back to the charts' page i can no longer see the charts.
I check with a javascript if the object is null and it seems that it is.
The session has not timed out.
Does the attribute no longer exist?
sorry if i'm not well understandable.
Thanx in advance :)