Howard,

I believe you are correct in your assumption,
the XML style directives are often used in JSP to ease shock that HTML
designer will have once they see the page. JSP creators thought that making
scripting rather familiar to Web designer will ease the coordination between
the JSP developer and designer who have to work on the same source file.
As an unrelated note: if its possible to put things in request scope its
better to use this option. Its better to limit scope="session" only for
things that persist between requests.

Vadim Shun
NEW Corp
Dulles, VA

-----Original Message-----
From: Howard Lee [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 24, 2000 12:31 AM
Subject: Diff. between HttpSession and <jsp:useBean>


Hi,

I'm new to JSP, and have a question about how I should go about doing a
session management. I'm used to creating a HttpSession object and do
putValue and getValue on it, and I've seen a JSP example that uses a java
bean to store and retrieve values. It seems to me that if I use <jsp:useBean
scope="session"> to a bean, this is pretty much what an HttpSession object
is. Am I right about this or I'm mistaken? Thanks.

howard

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to