for this, try:
return new String[] { "string1", "string2", "string3",
"string4", "string5", "string6", "string7" };
Adrian
--- mail <[EMAIL PROTECTED]> wrote: > I placed
this in the Action class and everything
> compiled, but it moved
> everything iteration of gridDetermination
> MessageCodes into only the first
> array iteration. For example, if I have 7
> MessageCodes to load into the
> MsgCode array, I only get one MsgCode in the array.
> How should I do this to
> create an array of MsgCode's?
>
> Thanks!
>
> ResponseProcessAction:
> responseProcessForm.setMsgCode(new String[]
> {gridDeterminations.getMessageCode()});
>
> ResponseProcessForm:
> public void setMsgCode(String[] msgCode) {
> this.msgCode = msgCode;
> }
>
> public String[] getMsgCode() {
> return msgCode;
> }
>
> -----Original Message-----
> From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 10:54 PM
> To: Struts Users Mailing List
> Subject: Re: How to call an array setter
>
>
> setMsgCode(new String[] {
> gridDeterminations.getMessageCode() });
>
> If it's expecting an array, you'll have to give it
> one.
>
> mail wrote:
>
> >getMessageCode() returns a String.
> >
> >The error message I get is:
> > setMsgCode(java.lang.String[]) in
> com.coramhc.grid.ResponseProcessForm
> >cannot be applied to (java.lang.String)
> >
> >Any ideas?
> >
>
> --
> Eddie Bush
>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
http://mobile.yahoo.com.au - Yahoo! Messenger for SMS
- Always be connected to your Messenger Friends
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>