I want list of items to be displayed along with each having a blank textfield to fill amount on my
jsp page and once I fill the required items amount, I will submit.
I have ExampleAction class as below, where I have populate() mtd which I fire first so that items are filled. I fire url :
Same ExampleAction has execute mtd which I call on SUBMIT button action from jsp page. But my problem is in execute mtd, I am unable to get the objects in list i.e. exList. Is this because an instance of the action class is associated with just one request? And when I fire another action through SUBMIT button there is different value stack associated? If yes, what should be the best possible ways for me to retrieve those amounts entered (in jsp), in execute() mtd to print in console of
TomCat?
ExampleAction
EX.class
example.jsp
struts.xml
Please help me out, I am firing two actions:
1) populate.action : where I populate the exList
2)ex.action : which is triggered on SUBMIT button, to retrieve amounts entered in jsp against items , But I am unable to get any values, exList size is 0 in execute() method.
Thanks in advance.