RE: Iterating over a List of Lists

2009-06-02 Thread DavidCAIT
ne > > Hope this helps, > > Steve > > -Original Message- > From: DavidCAIT [mailto:dzaze...@cait.org] > Sent: 02 June 2009 02:14 > To: user@struts.apache.org > Subject: Iterating over a List of Lists > > > Hello, > > I am trying to use a nest

Iterating over a List of Lists

2009-06-01 Thread DavidCAIT
Hello, I am trying to use a nested List> with a Struts 2 Action and a JSP page. I would like to iterate through the JSP page to display the existing data, allow the user to edit the data, and post the form to a second Action. However, my second Struts Action always receives back a null list. I th

s:url tag with nested List

2009-02-04 Thread DavidCAIT
Hi, I'm trying to use a List as a parameter to a s:url tag. Ideally I would like to create a URL in the form of: myAction.action?theList=first&theList=second&theList=third I've tried writing my JSP in a few different ways without any success. First, I tried using a param tag directly inside the

Re: Null element in List

2009-02-03 Thread DavidCAIT
in, David DavidCAIT wrote: > > I did find a workaround which is a bit undesirable. > > If I change my ArrayList to a TreeMap and store the same value for the key > and the value then the problem disappears. However, it is a bit wasteful > to store each value in the list twice. >

Re: Null element in List

2009-02-03 Thread DavidCAIT
for me. DavidCAIT wrote: > > Hi, > > I have a list of Integers and I want one of the options to be null (since > it is a search field). However, I get the following freemarker exception > when rendering my JSP: > >>> FreeMarker template error! > &

Null element in List

2009-02-03 Thread DavidCAIT
Hi, I have a list of Integers and I want one of the options to be null (since it is a search field). However, I get the following freemarker exception when rendering my JSP: >> FreeMarker template error! >> Error on line 73, column 13 in template/simple/select.ftl >> stack.findValue('top') is u

Validation throwing IllegalArgumentException

2008-12-11 Thread DavidCAIT
I am using Struts 2 with the XML based validation and it is throwing the following exception: info: CORE3282: stdout: ERROR - ValidatorFactory.parseValidators(335) | Unable to load file:C:/Projects/test/webapps/default/WEB-INF/classes info: CORE3282: stdout: java.lang.IllegalArgumentException: UR

Error Flushing the Output Stream

2008-11-04 Thread DavidCAIT
I have a Struts action which populates a large amount of data into a List which is then displayed by a JSP page. At the top of this JSP page, there is also a link to another static page on the same website. When I wait for the JSP page to fully load and display all of the data, then everything wor

Redirect-Action Problem with struts 2.0.11 and multiple packages

2008-08-11 Thread DavidCAIT
Hi, I am having trouble getting the redirect-action syntax to work in struts 2.0.11. Here is the relevant portion of my struts.xml file: struts.xml: greeting.jsp results /