[
https://issues.apache.org/struts/browse/STR-2119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41796
]
Eric Jain commented on STR-2119:
--------------------------------
Thanks, I hadn't realized that I could cast the Context to a
ServletActionContext, works fine now. Regarding maintenance, I suppose I'll
have to diff the chain-config.xml file when upgrading in future, inevitably
there will be changes there... Not ideal, but a lot better than copy-pasting
half of the RequestProcessor code :-)
> Return appropriate status code when form validation fails
> ---------------------------------------------------------
>
> Key: STR-2119
> URL: https://issues.apache.org/struts/browse/STR-2119
> Project: Struts 1
> Issue Type: Improvement
> Components: Core
> Affects Versions: 1.1.0
> Environment: Operating System: other
> Platform: Other
> Reporter: Eric Jain
> Assignee: Paul Benedict
> Priority: Minor
>
> When redisplaying a form after validation has indicated a failure, a status
> code
> such as "400 Bad Request" should be used in place of "200 OK". This simplifies
> testing, and is important for applications that need to interact with the web
> interface of an application directly.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.