I've created an issue for the missing ServletContextAware and attached the source to the issue -
http://jira.opensymphony.com/secure/ViewIssue.jspa?key=XW-132
I've also added a ResolverSetupServletContextListener that does the job of setting the ServletContext on those resolvers that are ServletContextAware.
Cameron and I were discussing how we should initialise the resolvers last week on the list, and well, we were hoping for input from others on the list on the best way of doing this...
As Cameron pointed out using ServletContextListeners could potentially get messy if you have a lot of different Resolvers declared with slightly different config needs.
However, for most usage cases I think a ServletContextListener will suffice.
Cheers,
Ross
Matthew E. Porter wrote:
First, thanks to Ross and the Atlassian guys for their work on integrating Spring into WebWork. A number of people, myself included, have been wanting this for a few months. They took the initiative and time to implement this.
However, the code in Jira is incomplete at this time. The external reference code has been integrated into XWork's head. As previously noted, the sample Spring resolver is missing a ServletContextAware class. This is trivial to recreate as it is a single interface, but nothing is currently setting the ServletContext on the class implementing the interface. Or am I just missing something?
Does anyone have any update on this?
Cheers, matthew
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork