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

[jira] Commented: (STR-2119) Return appropriate status code when form validation fails

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

Eric Jain commented on STR-2119:
--------------------------------

Just looking at subclassing the ValidateActionForm command to set a non-200 response code if form validation fails. Two issues: 1. it seems I have to copy and modify (and in future maintain...) a big xml file (chain-config.xml), and 2. I don't seem to have access to the response object in the validate method (or anywhere else in this command class)!

> 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.