[ http://mc4j.org/jira/browse/STS-185?page=comments#action_10364 ] 

Remis B commented on STS-185:
-----------------------------

Good choice for Configuration.getServletContext()

Recently I need to get access to sprig been from TypeConverter. Only way I 
found, creating a static class with reference to servletContext.
I think in addition to your sugestion Configuration class could have an 
additional map for attributes in that case it would be possible to assign 
spring's ApplicationContect or any other application scope object and reuse it 
later when is needed.

> Cleaner way to access the ServletContext object when it is needed
> -----------------------------------------------------------------
>
>          Key: STS-185
>          URL: http://mc4j.org/jira/browse/STS-185
>      Project: Stripes
>         Type: Improvement

>   Components: ActionBean Dispatching
>     Reporter: Tim Fennell
>     Assignee: Tim Fennell
>     Priority: Minor
>      Fix For: Release 1.4

>
> Right now you can get it by a convoluted path:
>   
> StripesFilter.getConfiguration().getBootstrapPropertyResolver().getFilterConfig().getServletContext()
> This feels really "back-door"ish.  I'm not sure exactly where it should go, 
> but the most likely place right now would be:
>    Configuration.getServletContext()

-- 
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