Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSP
Search Coderanch
Advance search
Google search
Register / Login
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
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JSP
session
Jackie Wang
Ranch Hand
Posts: 315
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Can anyone tell me that how I can grab all the session object, attribute in a
jsp
page or in a
java
page which it is forwarding to? thanks
Blake Minghelli
Ranch Hand
Posts: 331
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I think you need to check out HttpSession.getAttributeNames() and HttpSession.getAttribute() in the
servlet
api.
Blake Minghelli<br />SCWCD<br /> <br />"I'd put a quote here but I'm a non-conformist"
Jackie Wang
Ranch Hand
Posts: 315
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
will that be a enumeration or how do i know how many seesion object are there? thanks!
Chris Smith
Ranch Hand
Posts: 42
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Read the API docs. Yes, that returns an enumeration. There's no simple way to determine the number of them, except to walk through it and count.
Chris
Jackie Wang
Ranch Hand
Posts: 315
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
thanks chris.
so which method should i use? should i find the method in object? thanks!
Anthony Smith
Ranch Hand
Posts: 285
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
<%
try
{
for (Enumeration a = session.getAttributeNames() ; a.hasMoreElements()
}
catch (Exception e)
{
System.out.println("Problem trying to set request variables: " + e);
}
%>
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
include file question!
session invalidate
scope value in jsp:useBean standard action
is it possible to access a session page after closing session page window
Difference Between JSP and Servlet Session
More...