>   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

well this is what i got with my test:
This is a string
This is another string
true
stringOne

as you see i added a   <%= request.getAttributeNames().nextElement() %> row,
but it works, now i use Apache 1.3.6 with jrun 2.3.3 whatever build and i
made this test with notepad and jdk 1.2.2, usually i use VisualAge 2.0 and
KAWA, but now i was lazy to fire those up, and i don't think it matters
anyway, so my guess would be somewhere around the javawebserver, but i could
be wrong

AndySoft

===========================================================================
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

Reply via email to