Re: Struts nested s:form and s:file tags

2010-10-28 Thread Mead Lai
Why not using the div tag, I haven't use the form tag like that, which a form nested another form. Regards, Mead On Thu, Oct 28, 2010 at 7:51 AM, Maurizio Cucchiara maurizio.cucchi...@gmail.com wrote: The first form doesn't contains enctype attribute. Did you try to set it to

Re: Struts nested s:form and s:file tags

2010-10-28 Thread Dave Westerman
Thanks, Maurizio! That was my problem, I never even noticed that. The first form doesn't contains enctype attribute. Did you try to set it to multipart/form-data?

Re: Struts nested s:form and s:file tags

2010-10-28 Thread Dave Newton
I wrote: If you're not, the entire form needs to reflect it'll be uploading a file. ... On Thu, Oct 28, 2010 at 8:53 AM, Dave Westerman dlwes...@us.ibm.com wrote: Thanks, Maurizio! That was my problem, I never even noticed that. The first form doesn't contains enctype attribute. Did you try

Re: Struts nested s:form and s:file tags

2010-10-28 Thread Dave Westerman
: Struts nested s:form and s:file tags I wrote: If you're not, the entire form needs to reflect it'll be uploading a file. ... On Thu, Oct 28, 2010 at 8:53 AM, Dave Westerman dlwes...@us.ibm.com wrote: Thanks, Maurizio! That was my problem, I never even noticed that. The first form

Struts nested s:form and s:file tags

2010-10-27 Thread Dave Westerman
I am trying to use the s:file tag to allow uploading a file to the server. However, this tag has to be within a larger overall form. s:form ... s:file name=uploadCustomImageFile / s:submit type=button action=%{siteId}/appearance/uploadCustomImage name=Upload File/ ... s:submit

Re: Struts nested s:form and s:file tags

2010-10-27 Thread Dave Newton
It's not legal to nest form tags; that's bogus HTML. I don't understand what you mean by the rest of the page doesn't work; a file tag is part of a form. You don't submit just part of a form, you submit all of it. If you're trying to do something like an Ajax upload, you'd need to do it

Re: Struts nested s:form and s:file tags

2010-10-27 Thread Maurizio Cucchiara
The first form doesn't contains enctype attribute. Did you try to set it to multipart/form-data? 2010/10/28 Dave Westerman dlwes...@us.ibm.com: I am trying to use the s:file tag to allow uploading a file to the server. However, this tag has to be within a larger overall form. s:form ...    

Nested s:form

2007-04-28 Thread meeboo
Hey all Is there a way to nest s:form elements in S2? I have a nested form which won't reach the specified action, even though it is correctly mapped. If I move it outside of the first form it automagically starts working. The action is mapped like: action name=deleteMovie/*/

Re: Nested s:form

2007-04-28 Thread James Mitchell
Nested forms are not valid HTML. -- James Mitchell On Apr 28, 2007, at 12:44 PM, meeboo wrote: Hey all Is there a way to nest s:form elements in S2? I have a nested form which won't reach the specified action, even though it is correctly mapped. If I move it outside of the first