This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Not able to retrieve values from table

 
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" >
<html:option value=""><c:out value="${riskValueList.consequence}"/></html:option>
<html:options
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">
<html:option value=""><c:out value="${riskValueList.probability}"/></html:option>
<html:options
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="<c:out 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.
 
I want my playground back. Here, I'll give you this tiny ad for it:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!