I use an iterating tag such this one

<csajsp:ShowCategories forma='righe' name='io' cycles='5'
bgColor='yellow' align='middle' width='250' border='1' >
None
</csajsp:ShowCategories>

this print out
NONE
NONE
NONE
NONE
NONE


<% Enumeration at =  session.getAttributeNames();
                                 System.out.println(at);
                                 while(at.hasMoreElements()) {
                                 String key =
                                 (String)at.nextElement();
                                 System.out.println("DATI:" +
                                 key );
                                 }
                                 Enumeration cicli =
session.getAttribute(Cycles);
                                 System.out.println(cicli);
%>




Then in the same JSP I want to know how many 'cycles' have been
specified

But it says

'Undefined variable: Cycles  session.getAttribute(Cycles); '

How can I access to cycles in the same JSP , with PageContext??

Thks
Leonardo

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