Hi Roland,
yes I know that this helps.
But its a dirty hack.

How about a program that makes two calls:

        getFoo(2);
        ...
        getFoo(1);

Since int index is ignored, the api of your bean exposes some functionality
which it doesn't deliver.

Thats not what I'd expect in a language like Java, specially if you'd use
the same class more often in your app, not just in the JSPs; worse than
redmondish to mee.

bye,
Werner

> -----
> Re: <LOOP> on Enumeration
>
> Hey Werner,
>
> a short hack follows.
> Hope that helps.
>
>
> Enumeration enum = something;
>
> public String getFoo(int index)
> {
>   if (enum.hasMoreElements())
>   {
>     return (String)enum.nextElement();
>   }
>   else
>   {
>     return null;
>   }
> }
>
> bye Roland
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to