struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apte, Dhanashree (Noblestar)" <DA...@jims.hctx.net>
Subject RE: The get() Method in the ActionForm
Date Wed, 13 Oct 2004 16:24:48 GMT
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:jiapei_jen@yahoo.com] 
Sent: Wednesday, October 13, 2004 11:17 AM
To: struts-user@jakarta.apache.org
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message