[ 
http://www.stripesframework.org/jira/browse/STS-503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11228#action_11228
 ] 

John Newman commented on STS-503:
---------------------------------

well if nothing else that exception should be checked for, my head was spinning 
for a while trying to figure out what was happening

> Need an easy way to specify the default handler in the on= attribute of 
> @Before and @After
> ------------------------------------------------------------------------------------------
>
>                 Key: STS-503
>                 URL: http://www.stripesframework.org/jira/browse/STS-503
>             Project: Stripes
>          Issue Type: Improvement
>          Components: ActionBean Dispatching
>    Affects Versions: Release 1.4.3
>            Reporter: John Newman
>            Priority: Minor
>
> Hi,
> This may already be supported in some way without my knowledge, if so I 
> apologize.  I have an interceptor method that I want to run only on the 
> default handler, not for any other events.  I could do
> on={"!oneEvent", "!twoEvents",} ... but this bean could have a lot of events 
> added in the future and I know I'll forget to update that list.
> So I figured on="" would work, but it actually  throws a bizarre exception 
> (could easily be trapped)
> java.lang.StringIndexOutOfBoundsException: String index out of range: 0
>         at java.lang.String.charAt(Unknown Source)
>         at 
> net.sourceforge.stripes.util.CollectionUtil.applies(CollectionUtil.java:79)
>         at 
> net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java:126)
>         at 
> net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:154)
>         at 
> net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:73)
>         at 
> net.sourceforge.stripes.controller.DispatcherHelper.doBindingAndValidation(DispatcherHelper.java:187)
>         at 
> net.sourceforge.stripes.controller.DispatcherServlet.doBindingAndValidation(DispatcherServlet.java:222)
>         at 
> net.sourceforge.stripes.controller.DispatcherServlet.doPost(DispatcherServlet.java:147)
>         at 
> net.sourceforge.stripes.controller.DispatcherServlet.doGet(DispatcherServlet.java:65)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> Could we add an extra attribute to support this?  A special constant?  I 
> don't know what's the best, if any, solution, just raising this for 
> discussion.

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

        

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to