title: Display an ArrayList with struts2 and jsp
body: <p>I am trying to learn struts2, so this is a pretty basic question.</p>
  
  <p>I have a page input_database.jsp, and its corresponding class input_database.java</p>
  
  <p>in the class file I have an arraylist of strings with a mutator and an accessor. I want to display it inside my .jsp file</p>
  
  <p>I've been trying to use a  to do it, but I think I'm doing something fundamentally wrong. </p>
  
  <p>here's the code I've been trying to use in the jsp file. the arraylist is a private list of strings called query_data. my ultimate goal is to display an arraylist of arraylists of strings to display my select statement, but I need to figure out some simple strings first.
  If anyone knows what I'm doing wrong, or can point me to a tutorial that I've overlooked that'd be awesome</p>
  
  <p>thanks</p>
  
  <pre><code>&lt;s:iterator value="query_data" id="something"&gt;
  
              &lt;s:property value="something"/&gt;&lt;br /&gt;
  
  &lt;/s:iterator&gt;
  </code></pre>