Is this inside a form element that has the ActionForm spgLooper associated
with it? Is spgLooper called spgLooper in your form declarations of your
struts-config.xml?
Michael Lee
----- Original Message -----
From: "Jason Vinson" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, February 06, 2003 11:48 AM
Subject: Re: RE: noob question - iteration of a table
> Here's what i have done so far (which isn't working):
>
> ActionForm class spgLooperForm.java:
>
> <snip>
> /* array of elements */
> private String[] testArray = {"foo", "boo", "noo", "goo"};
>
> public String[] getTestArray() {
> return (this.testArray);
> }
> public void setTestArray(String[] testArray) {
> this.testArray=testArray;
> }
> </snip>
>
> JSP spgLooper.jsp:
>
> <snip>
> <logic:iterate id="testArray" name="spgLooper">
> Element is: <bean:write name="testArray" property="value"/>
> </logic:iterate>
> </snip>
>
> And my output is:
>
> <snip>
> javax.servlet.jsp.JspException: Cannot find bean spgLooper in any scope
> at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:839)
> at
org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:300)
> at jsp_servlet._jsp.__spgLooper._jspService(__spgLooper.java:168)
> at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:120)
> at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:922)
> </snip>
>
> any pointers would be GREATLY appreciated.
>
> TIA,
> Jason
>
>
> -------Original Message-------
> From: Jarnot Voytek Contr AU HQ/SC <[EMAIL PROTECTED]>
> Sent: 02/06/03 02:25 PM
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: RE: noob question - iteration of a table
>
> >
> > You're under the right impression.
>
> Have you looked at:
> http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate ?
>
> --
> Voytek Jarnot
> Quidquid latine dictum sit, altum viditur.
>
>
> > -----Original Message-----
> > From: Jason Vinson [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, February 06, 2003 1:15 PM
> > To: Struts Users Mailing List
> > Subject: noob question - iteration of a table
> >
> >
> > I am relatively new to struts (using 1.1b3), and I am trying
> > to figure out how to iterate a group of tr & td's. I am
> > under the impression that i can setup all my data in the
> > action form and use a special taglib to iterate a table in my
> > jsp file, but I have no idea how to do it. Can anyone steer
> > me in the right direction?
> >
> > TIA,
> > Jason
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]