Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Not able to retrieve values from table  RSS feed

 
rachanaa jain
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have displayed a table in JSP using <display:table> and now when I'll click on the submit button after editing some values of table so I am not able to retrieve that all values in javascript.

Code What I have used in JSP:

<display:table uid="riskValueList"
class="TableList"
name="requestScope.riskValueList"
border="0"
pagesize="5"
export="false" requestURI="/InitAdminAssignRisk.do" bgcolor="fee8c6" width="100%" style="font-family:verdana;font-size:12;" >
<display:column property="riskClassification" title="Risk Classification" sortable="true" headerClass="sortable" bgcolor="white" />
<display:column property="riskID"></display:column>
<html:hidden property="riskID" name="ProjectForm" />
<display:column property="riskDescription" title="Risk Description" sortable="true" headerClass="sortable" bgcolor="white"/>

<display:column title="Consequence" sortable="true" headerClass="sortable" bgcolor="white" >
<html:select property="consequence" name="ProjectForm" >
<htmlption value=""><cut value="${riskValueList.consequence}"/></htmlption>
<htmlptions
collection="conseqValueList"
name="conseqValueList"
labelProperty="consequence"
property="consequenceID" />
</html:select>
</display:column>

<display:column title="Probability" sortable="true" headerClass="sortable" bgcolor="white">
<html:select property="probabilityID" name="ProjectForm">
<htmlption value=""><cut value="${riskValueList.probability}"/></htmlption>
<htmlptions
collection="probValueList"
name="probValueList"
labelProperty="probability"
property="probabilityID" />
</html:select>
</display:column>
<display:column title="Risk Cost" sortable="true" headerClass="sortable" bgcolor="white">
<input type="text" name="riskCost" value="<cut value="${riskValueList.riskCost}"/>" style="width:50px;" >
<!--html:text property="riskCost" name="ProjectForm" style="width:50px;"--><!--bean:write name="ProjectForm" property="riskCost"/--><!--/html:text-->
</display:column>
</display:table>

I want to retrieve all records of this valuelist(i.e.riskValueList)after editing something in drop-down or in text-box and want to save in to database.

Please help me.Can it will be possible with Javascript.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!