I am trying to learn struts within the Websphere env, I have an insert into a database working fine but now i want to read the data back and display it. I have the following components;
*) I have generated my data access beans "CdAllSel" and "CdAllSelRow"
*) Query Entry Form to start the event called "cdAllSel.jsp"
*) This fires an Action Class called "CdAllSelAction"
*) The Action Class calls "error.jsp" for exceptions
*) The Action Class calls "cdAllUpd.jsp" in the event of a success it should display the results found by the query.
*) I have an Action Form Class called "CdAllSelForm"
I beleive I need to place an iterational loop in the success jsp to display the data. I am assuming that the query via the Action Class & Action Fortm all works because I generated this code following the same procedure for the database insert function which works. I am stuck on the syntax, in my success jsp "cdAllUpd.jsp" I have the following;
<nested:iterate id="CdAllSelRow" name="CdAllSelRow">
Code: <nested:write name="CdAllSelRow" property="CD_CODES_CD_CODE"/>
Desc: <nested:write name="CdAllSelRow" property="CD_CODES_CD_DESC"/>
Type: <nested:write name="CdAllSelRow" property="CD_CODES_CD_TYPE"/>
Am I missing an important piece of code or logic here? As I dont know the syntax I am unsure what "id" and "name" should be set to.