Я новичок в расположении, и я просто не могу опустить голову над этим.
На странице 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>
Мне нужно вызвать мой класс действий и получить доступ к jcode, который является уникальным для каждого упомянутого задания. Как мне это сделать?
Вы можете использовать <h:param value="jCode">
для передачи jCode.