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

Posted By:   stardustmz
Posted On:   Wednesday, September 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, --    More>>

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,


--    <<Less

Re: Access a variable in all jsp files

Posted By:   jayvee88  
Posted On:   Sunday, March 3, 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