You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Leonidas Papadakis <lp...@bluecore.gr> on 2008/09/15 19:21:11 UTC
ExecuteAndWaitInterceptor encoding problem
Hi there,
i have implemented the classic execute and wait interceptor (struts2)
scenario following the online example. The xml code :
<action name="MyAction" class="MyAction">
<interceptor-ref name="defaultStack"/>
<interceptor-ref name="execAndWait"/>
<result name="wait"
type="dispatcher">longRunningAction-wait.jsp</result>
<result name="success" type="freemarker">success.ftl</result>
....
....
</action>
The problem is that when longRunningAction-wait.jsp is parsed and shown
at the browser the fields have wrong encoding, i.e. instead of utf8 it
returns something strange. I have set debug at my class through eclipse
and the field gets wrong encoding. I do not have this problem in my
other actions that do not have the execureandwait interceptor.
Does anyone have any idea on how to overcome this ? Is it a bug ?
Thanks, i appreciate your replies.
Regards,
Leon
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: ExecuteAndWaitInterceptor encoding problem - get problem
Posted by Leonidas Papadakis <lp...@bluecore.gr>.
Actually further to my research it is doing that when i use get method
.. Post works fine .
Any thoughts ?
Leon
Leonidas Papadakis wrote:
> Hi there,
>
> i have implemented the classic execute and wait interceptor (struts2)
> scenario following the online example. The xml code :
>
> <action name="MyAction" class="MyAction">
> <interceptor-ref name="defaultStack"/>
> <interceptor-ref name="execAndWait"/>
> <result name="wait"
> type="dispatcher">longRunningAction-wait.jsp</result>
> <result name="success" type="freemarker">success.ftl</result>
> ....
> ....
> </action>
>
>
> The problem is that when longRunningAction-wait.jsp is parsed and
> shown at the browser the fields have wrong encoding, i.e. instead of
> utf8 it returns something strange. I have set debug at my class
> through eclipse and the field gets wrong encoding. I do not have this
> problem in my other actions that do not have the execureandwait
> interceptor.
>
> Does anyone have any idea on how to overcome this ? Is it a bug ?
>
> Thanks, i appreciate your replies.
>
> Regards,
>
> Leon
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org