tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "D. Jay Newman" <...@sprucegrove.com>
Subject Re: Iterator.next to String
Date Sat, 27 Oct 2001 14:03:48 GMT
> but I want to pass it to next jsp, so I want to get the value of
> iterator.next and convert to String variable
> 
> I try String title=(String)iterator.next(); but I found error .....

If you haven't gotten several answers by now:

Unless you are iterating over a list of String's, that won't work.

I think you need:

   String title = iterator.next().toString();

I hope this helps.
-- 
D. Jay Newman                      !  // The worst possible legal hashCode
jay@sprucegrove.com                !  public int hashCode() { return 42;}
http://www.sprucegrove.com/~jay/   !    -- _Effective Java_

--
To unsubscribe, e-mail:  <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message