Re: S2 - custom tag with Spring

2013-12-05 Thread Steven Yang
thanks I will try that On Thu, Dec 5, 2013 at 4:29 PM, Lukasz Lenart wrote: > 2013/12/4 Steven Yang : > > I think I missed something. > > > > To be clear what I meant by tag as jsp tag with tld defined. > > Yes my resource beans are defined in Spring, using XML actually. However > my > > tag cla

Re: S2 - custom tag with Spring

2013-12-05 Thread Lukasz Lenart
2013/12/4 Steven Yang : > I think I missed something. > > To be clear what I meant by tag as jsp tag with tld defined. > Yes my resource beans are defined in Spring, using XML actually. However my > tag classes are not. > > From what I understand, the life cycle of tag is controlled by the web > co

Re: S2 - custom tag with Spring

2013-12-04 Thread Steven Yang
I think I missed something. To be clear what I meant by tag as jsp tag with tld defined. Yes my resource beans are defined in Spring, using XML actually. However my tag classes are not. >From what I understand, the life cycle of tag is controlled by the web container therefore not defined in Spri

Re: S2 - custom tag with Spring

2013-12-04 Thread Miguel Almeida
If you @Autowire something into your class you're essentially doing the same as retrieving the resources from ApplicationContext. Once you define your class as a Spring bean in Spring's configuration (either by explicitly defining it in an XML or because it's in a classpath which you've told Sprin

S2 - custom tag with Spring

2013-12-03 Thread Steven Yang
Hi I am writing some custom tags. I want to access some resource from Spring. Is there a clean way of doing it, instead of getting the ApplicationContext in the Components? Will @Inject work for non-Struts values? Or @Autowire will work as well? I am using the spring plugin. Thanks