This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am developing an application in struts... I would like to how the button and submit types of UI are used by the Action class...Meaning I have a table with 3 columns where a row along with data for the 3 cells is added dynamically to the table on click of a button.During this process I need to store these 3 values in 3 different lists and update the list for successive values of rows that are added...Ex:- 5 rows... 3 ArrayLists each with 5 values... But since it is done on a button click and not submit I am unable to prepare these arrayLists in action class...We know that the name of the button and the variable in action class should be same.How to rectify this?
It'd be helpful to state which version of Struts you're using.
Joined: Oct 27, 2009
I am developing in struts 2. My doubt is in Action class variable name which is the name of the button in jsp.As I said I should not submit ad go to next page.But since it is a button the the action class is not being called..How do i PREPARE MY ARRAYLISTS?