The problem is that you are calling a method of the class itself, which can only be static, instead of calling a method of an INSTANCE of the class.
For instance, do this: SelectRecipientsForm myForm = (SelectRecipientsForm)form; where form is the form object passed into your Action's execute() method. Then try doing: String[] to = myForm.getSelectedEmailAddresses(); That should work. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Wed, October 13, 2004 12:24 pm, Apte, Dhanashree (Noblestar) said: > Caroline, > > It would be the right way or wrong way depending upon where in your class > you are calling this method. > Could you paste the code for your form as well? > > -Dhanashree. > -----Original Message----- > From: Caroline Jen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 13, 2004 11:17 AM > To: [EMAIL PROTECTED] > Subject: The get() Method in the ActionForm > > I have selectRecipientsForm that extends ActionForm. > > After the form is populated, I have this: > > String[] to = > SelectRecipientsForm.getSelectedEmailAddresses(); > > I thought that it was the right way to get something in the populated > form; > but, the compiler says that the non-static method > getSelectedEmailAddresses() cannot be referenced from a static context. > > What should I do? > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > --------------------------------------------------------------------- > 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]