You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tiles.apache.org by "Eddy Chan (JIRA)" <ji...@apache.org> on 2008/11/04 04:31:37 UTC

[jira] Commented: (TILES-328) Cast to ServletContext instead of using reflection

    [ https://issues.apache.org/struts/browse/TILES-328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44903#action_44903 ] 

Eddy Chan commented on TILES-328:
---------------------------------

I'm using Tiles 2.0.4, which is as part of the struts 2.0.11.2 showcase app.

> Cast to ServletContext instead of using reflection
> --------------------------------------------------
>
>                 Key: TILES-328
>                 URL: https://issues.apache.org/struts/browse/TILES-328
>             Project: Tiles
>          Issue Type: Improvement
>            Reporter: Eddy Chan
>            Priority: Minor
>
> In org.apache.tiles.access.TilesAccess.get/set/removeAttribute, instead of using reflection to call the methods, cast the context object to a ServletContext and then call the methods directly.  This reduces the chance of having a SecurityException occur, since the ServletContext interface for these methods are public, but the specific context may not be reflectable.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.