The following works in WebSphere 3.02 (jsp1.0, servlet2.1)
My logon servlet puts a Hashtable in the httpsession containing elements
about the user.
<jsp:useBean id="UserInfo" class="java.util.Hashtable" scope="session" />
Hello <=Userinfo.get("UserName")>
<br>How is the weather in <=Userinfo.get("Address")>?
I also use simple Strings the same way and put them in the "request" scope.
John Zerbe - Mellon Bank
Information Technology Solutions - Middleware Team
Phone: 412-234-1048 E-Mail:[EMAIL PROTECTED]
> -----Original Message-----
> From: Frank Kim [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, April 11, 2000 2:59 PM
> To: [EMAIL PROTECTED]
> Subject: hashtable instead of bean
>
> Is there a way to access data in a Hashtable from a JSP or does data
> always
> have to be exposed through a bean?
>
> I'd like to use it like a context in WebMacro or a SimpleHash in
> FreeMarker
> where the Hashtable can store simple types as well as complex ones like
> other Hashtables, Vectors, etc.
>
> Thanks
> Frank
>
> ==========================================================================
> =
> 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
===========================================================================
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