Close
jGuru Forums
Expand All | Collapse All
Access a variable in all jsp files... stardustmzWed Sep 12, 2012 07:52 AM
Hi, I'm a newbie in JSP and I'm stuck in a question. I have a matrix int[][] and I want it to be accessible to all jsp files. The code is: int[][] matrix = methodThatGeneratesTheMatrix; How can I access/use this matrix in all jsp files? Any help I really appreciate. thanks,
Report | Quote This | Reply | Print
You might want to read into the different availabl...
You might want to read into the different available scopes in a Servlet/JSP environment. The session scope or application scope is probably what you want to use to store your matrix.