You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/05/05 10:07:44 UTC

DO NOT REPLY [Bug 34751] New: - Deprecate "input" property

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34751>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34751

           Summary: Deprecate "input" property
           Product: Struts
           Version: Unknown
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P4
         Component: Controller
        AssignedTo: dev@struts.apache.org
        ReportedBy: jmikus@gmail.com


Input property is cumbersome: it is called "input", whereas it better should be
called "error". This serves as a source of confusion for Struts newbies, who
might think that "input" is a page which is displayed before action receives
control. Also, this makes clean and linear chain of request -> action -> forward
a little fuzzy. 

Another reason is that by default "input" property does not support redirection.
Redirection can be turned on, but not all developers know about this feature.
Also, in this case it is turned on globally for the whole application, and all
"input" properties would have refer to corresponding "forward" properties. Why
not just to remove "input" altogether?

Input property can be easily simulated with regular "forward" property. If one
forward property should handle automatic error validation, it can simply have
predefined name, like <forward name="ERROR" ... /> 

Each action can have a bunch of errors, and there might be need for a bunch of
error locations, so having only one "input" sometimes is not enough anyway.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org