i am trying to display customer and product info. on saveOrder.jsp
but only the customer(s:select) could display correctly
and on myeclipse only show a sql for customer
could anybody tell me how to fix it
Oh; I see. Don't do it like that. The action tag has a host of issues and in general shouldn't be used just to get view-side data. Get the data in the action that's actually executing and create action properties for it.
Joined: Jan 16, 2010
that means applicationContext.xml and struts.xml??
or could you please explain more
i know i have to execute action first
but i don't know how to do it
1) You're executing an action to get to the JSP that has the action tag in it.
2) You're using the action tag to populate some lists by calling service methods.
3) You're using those lists to fill some form field options.
I'm saying eliminate step 2, do the service method calls in the action from step 1.