I agree with Felipe. In version 2.3.8 all was fine, but from 2.3.12 all 
the problems with tags begun (action tags and field tags).

Thanks

 
Daniel Clemente Ivars




De:     Felipe Lorenz <felipe.lor...@idealogic.com.br>
Para:   "Struts Users Mailing List" <user@struts.apache.org>, 
Fecha:  21/06/2013 14:30
Asunto: Re: s:action tag showing result



Hi Lukasz,

I try struts v. 2.3.8, and everything works fine. But, the first version 
I've notice this strange behaviour was 2.3.12.

I try to find the ftl file for the action tag, but I could no find it. 
There is a special file? How does it works?

Thanks,

Felipe Lorenz
Gerente de Projetos
Idealogic Software
Fone: (51) 3715 5523 - (51) 3715 5548
www.idealogic.com.br

Em 21/06/2013, às 02:34, Lukasz Lenart escreveu:

> Have you tried to use the previous versions?
> 
> 
> Regards
> -- 
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
> 
> 2013/6/20 Felipe Lorenz <felipe.lor...@idealogic.com.br>:
>> Hi all,
>> 
>> I have been using struts quite a long time, but in the last days I have 
faced a strange behaviour of s:action tag.
>> 
>> In my JSP I am using the tag action to load list to be used to mount my 
s:select. But in the redered HTML, the result of the action is showing, 
even when the executeResult is false.
>> 
>> There is something I missing?
>> 
>> 
>> JSP code:
>> 
>> <s:action namespace="/ajax" name="loadEstadoByPais" var="estado" 
flush="false" />
>> <s:select
>>                        label="%{getText('global.lbl_nmEstado')}"
>>                        name="cidade.estado.idEstado"
>>                        listKey="idEstado"
>>                        listValue="nmEstado"
>>                        list="#estado.estados"
>>                        emptyOption="true"
>>                        id="estadoCombo"
>>                        tooltip="%{getText('global.hint_nmEstado')}"/>
>> 
>> struts.xml:
>> 
>> <action name="loadEstadoByPais" method="loadEstadoByPais" 
class="br.com.seedingControl.action.EstadoAction">
>>        <result name="index" type="json">
>>                <param name="includeProperties">
>>                        ^estados\[\d+\]\.idEstado,
>>                        ^estados\[\d+\]\.nmEstado
>>                </param>
>>        </result>
>> </action>
>> 
>> As you can see, in the struts.xml, I have only json result, and I only 
need as json, but when I use the action tag, I just only need the 
populated list to be used in the select tag. It is working very well, but 
the problem is that the json result is showing in the HTML. And it is 
showing in the top, not in the action tag position, what is strange.
>> 
>> Also, I try to change the struts.devMode to false, but nothing changes.
>> 
>> The project is using struts 2.3.14.3 with rest-plugin. But for this 
kind ok action, I avoid rest and use just json-plugin.
>> 
>> Please, if need any further info, ask me!
>> 
>> Thanks in advance.
>> 
>> 
>> Felipe Lorenz
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 



.
.

Reply via email to