struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yiorgos Panayiotakis <>
Subject ExecAndWait interceptor parameters lost
Date Wed, 05 May 2010 08:30:21 GMT

I have an issue in my code that I can't resolve and I would appreciate your
I am using the struts2 execAndWait interceptor when I submit a form on my
Below is the relevant struts.xml snippet

   <interceptor-stack name="loadingStack">
            <interceptor-ref name="defaultStack" />
            <interceptor-ref name="execAndWait" />

    <action name="ProcessTripForm" class="actions.ProcessTripForm">
            <interceptor-ref name="loadingStack"></interceptor-ref>
            <result name="input">/jsp/unscheduled.jsp</result>
            <result name="success" type="chain">ProcessTrips</result>
            <result name="wait">/jsp/wait.jsp</result>

    <action name="ProcessTrips"
            <result name="success">/jsp/results.jsp</result>
            <result name="none">/jsp/no_results.jsp</result>

The problem I have, is that when I submit my form via POST and produce
some results then if I try to refresh the results page (results.jsp) those
data previously
send via POST do not exist anymore, so I'm redirected to the wait page and
finally because data do not exist to an error page (that does not happen in
Firefox where data somehow are preserved in refresh). Obviously data are
the first time the wait page is auto-refreshed. FYI here is a simplified
of my wait.jsp

<html xmlns="">

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="refresh" content="3;<s:url includeParams="all"/>"/>

  <title>Wait Page</title>




I could solve this problem by using includeParams="all" in s:url (as seen
above) when
refreshing wait page but then the data are seen in the URL (aside the fact
that there is
a ton of data).Also, when data are not latin characters then after the first
refresh the
character encoding in URL fails, so cannot be used later for repeating the
request with
refresh (e.g. ProcessTripForm.action?originCity=Ηράκλειο is becoming after
the first
%26%23x81%3B%26%23xCE%3B%26%23xAC%3B and continues to expand).

My question is how can I preserve data when I use the execAndWait
interceptor and use a
POST request in a way that when I'm on result page and hit refresh the same
request will
be repeated?
If that is not possible, and I have the data on my URL via GET and
includeParams then what
do I have to do so encoding does not fail ?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message