Mudanças entre as edições de "Como armazenar dados em SERVLETS"

De Basef
Ir para: navegação, pesquisa
(Criou página com 'Remember that you can store data in lots of different places in a servlet. To wit: * Local variables - for loop iterators, result sets, and so forth * Request attributes - fo...')
 
 
Linha 9: Linha 9:
  
 
This extract is from http://www.jguru.com/faq/view.jsp?EID=416009
 
This extract is from http://www.jguru.com/faq/view.jsp?EID=416009
 +
[[Category:Java para Web]]

Edição atual tal como às 07h21min de 12 de maio de 2015

Remember that you can store data in lots of different places in a servlet. To wit:

  • Local variables - for loop iterators, result sets, and so forth
  • Request attributes - for data that must be passed to other servlets invoked with the RequestDispatcher
  • Session attributes - persists for all future requests from the current user only
  • Instance variables - for data that persists for the life of the servlet, shared with all concurrent users
  • Static variables - for data that persists for the life of the application, shared with all concurrent users -- including any other servlet instances that were instantiated with different init parameters
  • Context attributes - for data that must persist for the life of the application, and be shared with all other servlets

This extract is from http://www.jguru.com/faq/view.jsp?EID=416009