Multipart produces an error when you invoke in the same request twice to
Struts and population is performed twice. I had this problem (I'm using
Struts 1.0) and as I couldn't remove multipart attribute I have to
perform a redirect.

Saludos.
Guillermo

-----Original Message-----
From: Daniel Henrique Alves Lima [mailto:[EMAIL PROTECTED] 
Sent: Sábado, 06 de Marzo de 2004 08:32 p.m.
To: [EMAIL PROTECTED]
Subject: Re: 1 request & 2 forms


    Something strange is happening:

    When i tried to use BeanUtils.copyProperties, i've checked that 
request.getParameterMap() was returning null. Then, i've removed 
"enctype=multipart" from my form declaration (in source.jsp). Now, 
request.getParameterMap() is working...I will investigate this odd 
behaviour (because our application has some Filters and 
HttpServletRequestWrappers).

    Thanks all !!!!

Guillermo Meyer wrote:

>Struts fills Forms attributes before invoking an action.
>How are you chaining these actions?
>In case 2:
>Source.jsp post to Aaction. Aform is populated with request parameters 
>and execute in Aaction is called. You do something with this and then, 
>returns an actionForward that as "Baction.do". So, you "chain" these 
>actions, and Struts is invoked again with this actionForward. The 
>request is the same (do not do any redirect) so Struts populates Bform 
>Asociated to Baction and fills it with the same request parameters as 
>in Aform.
>
>Are you configuring mappings like this?
>
><action path="/AAction" type="mypackage.AAction" name="AForm">
>       <forward name="BAction" path="/BAction.do"/> <!-- if you use
redirect, 
>request is lost and parameters are not filled.--> </action>
>
><action path="/BAction" type="mypackage.BAction" name="BForm">
>       <forward name="destiny" path="/destiny.jsp"/>
></action>
>
>May you are either calling Baction in other way or are using a redirect

>between them, are you?
>
>Cheers.
>Guillermo.
>
>  
>

NOTA DE CONFIDENCIALIDAD
Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a las 
personas direccionadas en el mail y puede contener informacion (i)de propiedad 
exclusiva de Interbanking S.A. o (ii) amparada por el secreto profesional. Cualquier 
opinion en el contenido, es exclusiva de su autor y no representa necesariamente la 
opinion de Interbanking S.A. El acceso no autorizado, uso, reproduccion, o divulgacion 
esta prohibido. Interbanking S.A no asumira responsabilidad ni obligacion legal alguna 
por cualquier informacion incorrecta o alterada contenida en este mensaje. Si usted ha 
recibido este mensaje por error, le rogamos tenga la amabilidad de destruirlo 
inmediatamente junto con todas las copias del mismo, notificando al remitente. No 
debera utilizar, revelar, distribuir, imprimir o copiar este mensaje ni ninguna de sus 
partes si usted no es el destinatario. Muchas gracias.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to