TechnoBuzz

A Techno Blog, mainly about Java

Struts multi select

After reading up on struts including reading parts of the Struts in Action book, I was looking for an example which had all types of inputs for a typical form (radio, select, multiselect, etc). Most examples with Struts show the typical user name and password logon example.

Best I found is here. However, it does not cover multiselect.

In the Sandbox struts forum, there was this.
Then there was Advanced Forms Handling in Struts 1.1.

In the end, I was looking for the type for storing my multiselect input:

Here is how I did it:
import org.apache.struts.action.*;
public class aForm extends ActionForm {
protected String [] username;
public String [] getUsername () {return this.username;};
public void setUsername (String [] username) {this.username = username;};

Advertisements

September 13, 2004 - Posted by | Struts

5 Comments »

  1. Thank you! I bought books and looked everywhere for this.

    Comment by Connor | August 26, 2005 | Reply

  2. I for all time emailed this blog post page to all my associates, as if like to read it afterward
    my links will too.

    Comment by Winston | January 10, 2013 | Reply

  3. For latest information you have to pay a visit internet and on world-wide-web I found this web page as a finest website for most up-to-date updates.

    Comment by cold calling executives | January 11, 2013 | Reply

  4. My brother suggested I might like this web site. He was totally right.
    This post actually made my day. You cann’t imagine just how much time I had spent for this information! Thanks!

    Comment by watch adult movies free | February 1, 2013 | Reply

  5. Awesome website you have here but I was curious if you knew of
    any forums that cover the same topics talked about in this article?
    I’d really like to be a part of online community where I can get feedback from other experienced people that share the same interest. If you have any recommendations, please let me know. Many thanks!

    Comment by www.69videosporno.net | May 29, 2013 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: