[ http://issues.apache.org/struts/browse/STR-1844?page=all ]
David Evans reopened STR-1844:
------------------------------
Assign To: David Evans (was: Struts Developer Mailing List)
> Errors tag does not allow the user to customize the
> header/footer/prefix/suffix
> -------------------------------------------------------------------------------
>
> Key: STR-1844
> URL: http://issues.apache.org/struts/browse/STR-1844
> Project: Struts Action 1
> Type: Improvement
> Components: Taglibs
> Versions: Nightly Build
> Environment: Operating System: All
> Platform: All
> Reporter: Jason Gola
> Assignee: David Evans
> Priority: Minor
> Attachments: ErrorsTag.java, struts-html.tld, struts-html.xml,
> struts-nested.tld, struts-nested.xml
>
> ENHANCEMENT IDEA:
> We're currently using Struts 1.1 and we came across a problem where the
> header
> for our errors section was inappropriate for some of the pages in our
> application.
> My idea is to modify the ErrorTag functionality such that the user can
> specify
> any, all, or none of the message keys that should be used for the header,
> footer, prefix, and suffix.
> ===========================
> SOLUTION:
> I got the nightly code from 11-07-2003 and made enhancements to
> ErrorsTag.java
> to allow the user to specify headerKey, footerKey, prefixKey, and suffixKey.
> For each of those attributes, if the attribute is missing then the tag uses
> the
> default value (errors.header, errors.footer, errors.prefix, errors.suffix).
> I
> also moved those default keys to static variables.
> I think that this should work for both the html and the nested taglib, so I
> modified html.tld and nested.tld. I couldn't find those files in the nightly
> download, so I modified copies that I have from Struts 1.1. These files now
> have four new attributes for the errors tag, all of which are optional.
> ==============================================================================
> DOCUMENTATION/ NOTES:
> I modified the xml documentation for struts-html.xml and struts-nested.xml to
> include website documentation. The documentation in this file is very
> similar
> to the javadoc that I added in ErrorTag.java.
> I can be reached at [EMAIL PROTECTED] for questions/requests regarding this
> enhancement.
> Thanks!
> Jason Gola
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]