Hi,
I m creating a service layer in which I populate the list of transfer objects that hold the data to be displayed on the jsp. I m planning to add this service to the command object, so that I could get the list from the command object when the page is loaded. I m using JSTL to iterate through the list and display. I tried to add the service as a property to the command object. I get error creating bean error. Is it possible to add the service to the command object. If not is there a way I could get the list the service returns in the jsp.
Thanks,Code:<bean id="asForm" class="com.apps.business.handler.ASHandler"> <property name="sessionForm"><value>false</value></property> <property name="commandName"><value>asViewElement</value></property> <property name="commandClass"><ref bean="asViewElement"/></property> <property name="validator"><ref bean="asValidator"/></property> <property name="formView"><value>ASPage</value></property> <property name="successView"><value>thankYouPage</value></property> </bean> <bean id="asViewElement" class="com.apps.business.view.ASViewElement"> <bean id="asService" class="com.apps.business.service.ASService"/> </bean>
Shiva


Reply With Quote