• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

use of scope in useBean tag and session in page tag

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
I yam what I yam and that's all that I yam - the great philosopher Popeye. Tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic