[英]Pass bean:write value from Jsp to Action Class
I'm new to struts and I just can't get my head around this one. 我是Struts的新手,但我对此一无所知。
candyViewJobs.jsp page has an array list displayed in a table like below candyViewJobs.jsp页面的数组列表显示在如下表中
<form method="post" name="form">
<table id='tableViewJobs'>
<tr>
<th width="14%">Job Code</th>
<th width="14%">Job Name</th>
<th width="14%">Qualification Required</th>
<th width="16%">Skills</th>
<th width="14%">Experience Required</th>
<th width="14%">Vacancies</th>
</tr>
<logic:iterate name="view" id="jobs">
<tr>
<td><bean:write name="jobs" property="jcode"/></td>
<td><bean:write name="jobs" property="jname"/></td>
<td><bean:write name="jobs" property="qualify"/></td>
<td><bean:write name="jobs" property="skills"/></td>
<td><bean:write name="jobs" property="xp"/></td>
<td><bean:write name="jobs" property="vac"/></td>
<td><input type="button" value="Apply"/></td>
<td><input type="button" value="View More Details" onclick="location.href='viewDetails.do'"/></td>
</tr>
</logic:iterate>
</table>
</form>
I need to call my action class and access the jcode which is unique to every mentioned job. 我需要调用我的动作类并访问每个提到的作业所独有的jcode。 How do i do it? 我该怎么做?
您可以使用<h:param value="jCode">
传递jCode。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.