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..
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
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,
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
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,
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
:
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
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,
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
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
10 matches
Mail list logo