Hi, it doesn't work, i think its a bug.
my action in struts.xml
<action name="reservasProvinciales" class="ejemplo.pruebaAction">
<interceptor-ref name="defaultStack"/>
<interceptor-ref name="execAndWait">
<param name="delay">1000</param>
<param
name="delaySleepInterval">1000</param>
</interceptor-ref>
<result>/pages/amarillas/provinciales/pos_loc.jsp</result>
<result
name="menuTerminos">/pages/pageprueba1.jsp</result>
<result
name="listadoTerminos">/pages/pageprueba2.jsp</result>
</action>
and in ejemplo.pruebaAction in execute method
public String execute() throws Exception {
String coSite=getText(TPIConstants.coSitePAM);
String tipoPam=getText(TPIConstants.tipoPAMProv);
when it calls getText it breaks, if i remove the interceptors tag in
the struts.xml it get the text and works fine
I tried too with this other interceptor in struts-default.xml and fails too :(
<interceptor-stack name="executeAndWaitStack">
<interceptor-ref name="execAndWait">
<param name="excludeMethods">input,back,cancel</param>
</interceptor-ref>
<interceptor-ref name="defaultStack"/>
<interceptor-ref name="execAndWait">
<param name="excludeMethods">input,back,cancel</param>
</interceptor-ref>
</interceptor-stack>
any ideas? maybe a bug? thanks
2008/5/22 Giovanni Azua <[EMAIL PROTECTED]>:
> hi Eduardo,
>
> It would be useful that you posted the struts configuration and all relevant
> snippets. We won't otherwise understand the case you're describing.
>
> Just a wild shot at what you explain sounds like you don't get your
> properties properly assigned to the Action ... is that it? If it is the
> case then please make sure to have the action mapping including not only the
> execAndWait interceptor but also the default stack right before it e.g.
>
> <action name="SimulationRun"
> class="com.sag.optimizer.ui.web.action.simulation.SimulationRunAction">
> <interceptor-ref name="defaultStack"/>
> <interceptor-ref name="execAndWait">
> <param name="delay">1000</param>
> <param name="delaySleepInterval">1000</param>
> </interceptor-ref>
> <result name="wait" type="tiles">webui.simulationWait</result>
> <result name="success" type="tiles">webui.simulationReport</result>
> <result name="input" type="tiles">${ type.equals('COVARIANT') ?
> 'webui.formCovSimulation' : 'webui.formInvSimulation' }</result>
> <result name="error" type="tiles">webui.requestFailed</result>
> </action>
>
> HTH
> regards,
> Giovanni
>
> Eduardo Solanas wrote:
>>
>> Hi Giovanni i have proved the executeAndWaitStack interceptor, and it
>> works well(aiting page works ok) but in my method (in an Action) in
>> wich i have to access with getText to a key in a properties file, and
>> it doesn't work!!!! if i quit the interfeptor it works again, maybe a
>> bug?
>>
>> thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]