Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 74106 invoked from network); 30 Nov 2001 20:44:00 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 30 Nov 2001 20:44:00 -0000 Received: (qmail 13835 invoked by uid 97); 30 Nov 2001 20:43:45 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@jakarta.apache.org Received: (qmail 13789 invoked by uid 97); 30 Nov 2001 20:43:44 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 13768 invoked from network); 30 Nov 2001 20:43:44 -0000 Message-ID: <3C053C8F00000F54@mail.san.yahoo.com> Date: Fri, 30 Nov 2001 12:43:40 -0800 In-Reply-To: From: =?iso-8859-1?Q?Ajay=20Chitre?= Subject: =?iso-8859-1?Q?RE=3A=20My=20first=20Struts=20question?= Reply-To: Ajay.Chitre@DiligentTeam.com To: =?iso-8859-1?Q?Struts=20Users=20Mailing=20List?= MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Jeff, Welcome to the list. You can find the searchable archive at; http://www.mail-archive.com/struts-user@jakarta.apache.org/ Thanks. -- Original Message -- >All, > >I've just subscribed to the Struts Users mailing list, so "Hello, all!" > >I also took the time to try to get the FAQ for the list and to find a >searchable archive but the mailing list faq is non-existant (according to >ezmlm). I've looked at the Jakarta site and I'm still needing a push in= >the >right direction. > >I'm building my first Stuts "app" to learn more about it and at the mome= nt >I'm trying to use the html options JSP tag like so: > > > property=3D"username" > labelProperty=3D"username"/> > > >The action form for this JSP has the following method: > > public ArrayList getOpponents() > { > PlayerController playerController =3D new PlayerController(); > > ArrayList list =3D playerController.getOpponents(ourName); > > return list; > } > > >Unfortunately, I get the following error: > >javax.servlet.ServletException: Cannot find bean under name opponents > >If I manually create a list on the JSP and stick on the page context lik= e >so: > ><% >// ... >// create list >// ... > >pageContext.setAttribute("opponents", list); > >%> > >...Then the page renders. > >Am I missing something? How can I get the options tag to find the >collection within the form? > >(Or am I completely bonkers thinking that the options tag is supposed to= >look for the array in various places? Perhaps I need to change >"collection=3D"form.opponents"..." > >It just occurred to me to look in the bug database at jakarta.apache.org= ... > >I think I might be describing Bugzilla Bug 905 & 2096... > >If so, how can I, on the JSP, get to the ActionForm object so that I can= >do >a setAttribute? > >Any help? > >+=3D Jeff Knee > > >-- >To unsubscribe, e-mail: >For additional commands, e-mail: > > Ajay Chitre Diligent Team, Inc. (Where Diligent People Work as a Team) http://www.DiligentTeam.com -- To unsubscribe, e-mail: For additional commands, e-mail: