[Opensource] Need a jsp snippet to loop through the ErrorColl ection

Michael Rimov rimovm at centercomp.com
Fri Apr 11 12:33:47 PDT 2003


At 12:22 PM 4/11/2003 -0400, you wrote:
>Thanks for the reply Mike,
>
>So there's no way to use JSTL to loop through the collection?

Well, looking at the collection, it doesn't return a List, but an Iterator 
[definitely not JSTL friendly....]... however, if your enterprising, the 
biggest thing you need to know is that the ErrorCollection resides under 
the name:
          org.apache.struts.action.ERROR

After that, take a look at the code to figure out what APIs you need or can 
use with JSTL.

I haven't done it myself which is why you aren't getting more help, but 
this should point you in the right direction.

HTH!
                                                 -Mike





More information about the Opensource mailing list