Access a variable in all jsp files
1 posts in topic
Thread View Thread View
TOPIC ACTIONS:
 

Access a variable in all jsp files...
stardustmz
Wed 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,


--

 You might want to read into the different availabl...

jayvee88
Sun Mar 03, 2013 10:52 PM

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.

About | Sitemap | Contact