Exceptions in the body of stripes:form lead to confused tag state for the rest 
of the request
---------------------------------------------------------------------------------------------

                 Key: STS-259
                 URL: http://mc4j.org/jira/browse/STS-259
             Project: Stripes
          Issue Type: Bug
          Components: Tag Library
            Reporter: Tim Fennell
         Assigned To: Tim Fennell
             Fix For: Release 1.4.1


If an exception is thrown in the body of the stripes:form tag (or the 
stripes:select or any other input tag for that matter) then the internal stack 
of tags maintained by Stripes gets out of sync.  This is because the exception 
doesn't occur in a method invoked by the tag, but by the container.  E.g.

<stripes:form action="...">
  throw new NullPointerException
</stripes:form>

will cause the form tag to be retained in the tag stack beyond it's end tag.  
If the request is then directed to an error JSP with stripes tags on it, this 
can cause problems.

The preferred solution is to have the necessary tags implement TryCatchFinally.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to