To be short:
>From a tile1.jsp similar to the following:
<html:form action="/MenuSubmitOffer.do" enctype="multipart/form-data">
<html:file property="formFile" maxlength="100000" size="50"/>
<html:submit><bean:message key="form.submit"/></html:submit>
</html:form>

control is passed to the page defined as:
<tiles:insert definition="doc.mainLayout" flush="true">
<tiles:put name="body" value="/SubmitOffer.do"/>
</tiles:insert>

SubmitOffer is mapped to the SubmitOfferAction that does the handling of the 
request.

When I do that, the form is always reset before it arrives to the Action. If 
instead of setting the action to "/MenuSubmitOffer.do", I set it directly to 
/SubmitOffer.do then everything works fine.

I suspect my error is that instead of sending the request directly to the 
*Action and then forward - in case of success - to a page definition, I 
tried to send the request to a page definition (containing the *Action) and 
from the *Action forwarding to a tile definition.

Do you agree?

TIA

Kostas


On 7/11/05, Durham David R Jr Ctr 805 CSPTS/SCE <
[EMAIL PROTECTED]> wrote:
> 
> > What is the recommended way of working with multipart messages and
> > tiles at the same time?
> 
> SFAIK, Tiles and multipart encoding have nothing to do with each other.
> You're going to have to post some more info about your problem in order
> to get help.
> 
> Try posting the relevant Struts config items, the Action code that
> handles uploading, and whatever else you think is related. Maybe
> someone will be able to spot the problem(s).
> 
> 
> - Dave
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Reply via email to