Hi,

I have a view page, which displays an issue from the database. The results
are based on specified id in parameters. On the same page there is a form to
add some additional information to the issue. Validation (via validate()
method) is configured for the form, and in case of error I want to display a
page with details of the original issue and error description. I found
information about redirecting error messages via MessageStoreInterceptor.
The problem is that after redirect to view.action?issueId=${issueId},
${issueId} is being lost and the original page does not display anything.
Could someone give some hints how to make it work?

Here is a part from my struts.xml file:

        <action name="view" method="view"
class="com.sample.pages.IssueAction">
            <result name="success">/issue.jsp</result>
            <result name="input">/issue.jsp</result>
        </action>
        <action name="save" method="save"
class="com.sample.pages.IssueAction">
            <result name="input" type="redirect">
                view.action?issueId=${issueId}
            </result>
            <result name="success" type="redirect">
                view.action?issueId=${issueId}
            </result>
        </action>

Daniil

Reply via email to