You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2007/08/18 22:11:35 UTC

[jira] Commented: (STR-3086) doErrorsExist() needs to get ActionMessages errors also from the session if redirect is used

    [ https://issues.apache.org/struts/browse/STR-3086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41927 ] 

Paul Benedict commented on STR-3086:
------------------------------------

Are you sure you're putting the messages in the session? doErrorsExist() eventually calls TagUtils.getInstance().getActionMessages() which checks all scopes.

> doErrorsExist() needs to get ActionMessages errors also from the session if redirect is used
> --------------------------------------------------------------------------------------------
>
>                 Key: STR-3086
>                 URL: https://issues.apache.org/struts/browse/STR-3086
>             Project: Struts 1
>          Issue Type: Improvement
>    Affects Versions: 1.3.8
>         Environment: any
>            Reporter: Ralf Hauser
>            Assignee: Paul Benedict
>             Fix For: 1.3.10
>
>
> we use the redirect approach and for that we store the error messages in the session.
> Unfortunately, error tags as per http://www.niallp.pwp.blueyonder.co.uk/strutshighlight.html will not be found.
> There should be a way to tell the tags that it should also look for the errorKey in the HttpSession since we use redirect in the forward declarations of the struts-config.xml
> overwriting org.apache.struts.taglib.html.BaseHandlerTag.doErrorsExist() works, but is cumbersome

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.