• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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
 
What's gotten into you? Could it be this tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic