簡體   English   中英

將bean:write值從Jsp傳遞到Action類

[英]Pass bean:write value from Jsp to Action Class

我是Struts的新手,但我對此一無所知。

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。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM