Hi !
Again, let me thank all who responded to my questions. And let me also
specify some
technicalities which I forgot last times :
I am running JavaWebServer 2.0 using Servlet API 2.1 and JSP 1.0
I develop my java code in VisualCafe 3.0.c
AndySoft wrote :
> request object available in the JSP pages. However, this method always
> returns me an empty enumeration. But I have access to my
> attributes through
> the getAttribute() method. Am I missing something here ?
weird, can you tell us more about it? maybe it's just a bug in javax
Well, I have a servlet setting some request attributes with statements like
:
req.setAttribute("stringOne","This is a string");
req.setAttribute("stringTwo","This is another string");
And a JSP using those attributes with statements like :
<%= request.getAttribute("stringOne") %>
<BR>
<%= request.getAttribute("stringTwo") %>
<BR>
<%= request.getAttributeNames().hasMoreElements() %>
But here is what my browser show (both Nertscape 4.5 and IE 5 ) :
This is a string
This is another string
false
So, apparently, there are no items in my enumeration. Why ?
Thanks for your help,
Martin.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html