You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by John Mammen <Jo...@infosys.com> on 2007/08/21 11:33:06 UTC

Retrieving an arraylist of strings

Hi,

I have a JSP which has a drop down selection box which I populate using an arraylist of string objects present in the formbean. How do I get this arraylist of string objects back into the formbean when an action is submitted?

Regards,
John.


**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

Re: Retrieving an arraylist of strings

Posted by j alex <st...@gmail.com>.
John,

The problem is not very clear from your email . Are you losing the dropdown
items when the JSP reloads after submit ?

The list of items in the dropdown must reside in a separate bean, and the
item you select from it should be in another bean attribute -- i'm assuming
you've taken care of this already.

Thanks,
Joseph

On 8/21/07, John Mammen <Jo...@infosys.com> wrote:
>
>
> Hi,
>
> I have a JSP which has a drop down selection box which I populate using an
> arraylist of string objects present in the formbean. How do I get this
> arraylist of string objects back into the formbean when an action is
> submitted?
>
> Regards,
> John.
>
>
> **************** CAUTION - Disclaimer *****************
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
> solely for the use of the addressee(s). If you are not the intended
> recipient, please notify the sender by e-mail and delete the original
> message. Further, you are not to copy, disclose, or distribute this e-mail
> or its contents to any other person and any such actions are unlawful. This
> e-mail may contain viruses. Infosys has taken every reasonable precaution to
> minimize this risk, but is not liable for any damage you may sustain as a
> result of any virus in this e-mail. You should carry out your own virus
> checks before opening the e-mail or attachment. Infosys reserves the right
> to monitor and review the content of all messages sent to or from this
> e-mail address. Messages sent to or from this e-mail address may be stored
> on the Infosys e-mail system.
> ***INFOSYS******** End of Disclaimer ********INFOSYS***