• Post Reply Bookmark Topic Watch Topic
  • New Topic

use of scope in useBean tag and session in page tag  RSS feed

 
nick sharma
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
1.i wanted to know the use of the scope attribute in the usebean tag??

2. whats the use of session attribute in the page tag??how does it effect a jsp application??

Thanks
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.) The scope attribute tells the JSP engine where to look for your bean if you're using the "type" attribute or, if you're using the "class" attribute, it will determine which scope object your bean will be bound to.

2.) Which attribute are you asking about?


There is a copy of the JSP Specification in my signature.
If you plan on developing with JSP it really is a 'must read'.
 
nick sharma
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. whats the difference between scope=application and scope=session in the usebean tag??to what extent will the bean object be available in either cases??

2.i was asking about the session attribute in the page tag

<%@ page language="java" session="true" %>
what does session=true mean??

3. if i were to use the same bean for performing various operations in different jsp pages,when i create an object for it using usebean on every page,does it overload my webserver's heap memory??i am using the apache server with 96 mb as my heap memory limit.
is there any way of optimizing the heap memory usage??

Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!