Hi,
I have a service which returns a list of manufacturers.
In the
JSP file I have the following
<s:bean id="manufacturerService" name="service.ManufacturerService"/>
<s:set name="manufacturers" value="manufacturerService.allManufacturers"/>
${manufacturerService}
${manufacturers}
The ${manufacturerService} produces an output but the getAllManufacturers() method is never called and ${manufacturers} is empty.
Ideally I'd like ${manufacturers} to be a session bean so that the service is only called at the start of the session.
Where am I going wrong? And how do I set the collection in the session? I'm relatively new to
Struts 2.
Thanks.