struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Benedict (JIRA)" <>
Subject [jira] Closed: (STR-2119) Return appropriate status code when form validation fails
Date Thu, 05 Jul 2007 01:57:26 GMT


Paul Benedict closed STR-2119.

    Resolution: Not A Problem

Eric, you can handle this situation today in Struts. Set your Controller's attribute inputForward="true"
which will then use your action mapping's input attribute as a forward name. Then foward yourself
to an action which can return the HTTP status code you want.

<controller inputForward="true" />

<action .... input="myInputForward">
   <forward name="myInputForward" path="/my400Action" />

Because you can do this today, I am marking this issue as Not A Problem. There is no enhancement
to add or defect to fix.

> Return appropriate status code when form validation fails
> ---------------------------------------------------------
>                 Key: STR-2119
>                 URL:
>             Project: Struts 1
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.1 Final
>         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.

View raw message