How to use an ActionForm with a List of String[] ?

2006-02-09 Thread Collin VanDyck
I've been pulling my hair out on this one for a couple of days now :) I have an action form that needs to be able to handle a dynamic number of multiselect or checkbox fields. Typically if I knew I only had to grab one pre-known set of values, I'd do something like // my action form..

Re: How to use an ActionForm with a List of String[] ?

2006-02-09 Thread Collin VanDyck
Sorry had a typo.. Typically if I knew I only had to grab one pre-known set of values, I'd do something like // my action form.. private String[] possibleValues; private String[] values; // getters and setters.. // my jsp: html:select multiple=3 property=values html:options

Re: STRUTS AND JAVADOC.

2005-11-04 Thread Collin VanDyck
Hi Soren, You can javadoc your Struts Java types, although I'm not sure of a way to get your Struts configurations in normal JavaDoc. You can, however, run StrutsDoc: http://struts.sourceforge.net/strutsdoc/ StrutsDoc will document the information found in your struts configuration files,

Re: SV: STRUTS AND JAVADOC.

2005-11-04 Thread Collin VanDyck
It basically saves you tons of time over the normal course of the development lifecycle. All of your compilation, packaging, testing, deployment, and more can be automated with ant. If you've used makefiles in C, that's the analogy. You would simply type: % ant deploy Which, depending on

Re: SV: [OT] [ANT] Re: SV: STRUTS AND JAVADOC.

2005-11-04 Thread Collin VanDyck
You owe it to yourself to run through an ant tutorial or two. Start out getting something compiled, use that for a while. You can always expand your script in the future to do other things. You can easily have something running in a couple hours. Basically, if you are programming in Java,

Re: Problem validating multipart form data

2005-11-03 Thread Collin VanDyck
VanDyck on 02/11/05 20:53, wrote: Hello All Any ideas on this one? I switched to a manual validation, which works, though I'd much rather use the built-in mechanism to validate where possible. thanks Collin Collin VanDyck wrote: Hello! I'm using struts-1.2.7. I have form that needs both

Re: Problem validating multipart form data

2005-11-03 Thread Collin VanDyck
: http://issues.apache.org/bugzilla/show_bug.cgi?id=17583 Niall On 11/2/05, Collin VanDyck [EMAIL PROTECTED] wrote: Hello! I'm using struts-1.2.7. I have form that needs both file upload functionality as well as normal form fields interspersed on the same HTML page. I'm using the built

Re: struts download action

2005-11-03 Thread Collin VanDyck
You'll want to do set a header in your response like this: response.setHeader(Content-Disposition,attachment; filename=+fileName); HTH Collin sudip shrestha wrote: I have a struts action that downloads binary files from the database: e.g.: /actions/download.do?fileId=xxx, etc So,

Re: Problem validating multipart form data

2005-11-02 Thread Collin VanDyck
Hello All Any ideas on this one? I switched to a manual validation, which works, though I'd much rather use the built-in mechanism to validate where possible. thanks Collin Collin VanDyck wrote: Hello! I'm using struts-1.2.7. I have form that needs both file upload functionality

Problem validating multipart form data

2005-11-01 Thread Collin VanDyck
Hello! I'm using struts-1.2.7. I have form that needs both file upload functionality as well as normal form fields interspersed on the same HTML page. I'm using the built-in struts file upload utilities, so I create the form: html:form method=POST action=/entity/submitfile.act