Win a copy of Learn Java with Math: Using Fun Projects and Games this week in the Beginning Java 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
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

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.
 
Well don't expect me to do the dishes! This ad has been cleaned for your convenience:
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!