2014-07-18 3 views
1

테이블의 struts 1 태그의 일부 값을 채 웁니다. 이제 해당 테이블의 값을 하이퍼 링크 인 URL과 함께 보내려고합니다. 테이블에 배치는 작업을 호출 할 수 있어요하지만 난 내가 원하는 경우이 내가 calling.Now 오전 작업입니다테이블의 struts 태그에서 동작 URL이있는 매개 변수를 보내는 방법

<script type="text/javascript" charset="utf-8"> 
     $(document).ready(function() { 
      $('#metalPager').dataTable({ 

       "bFilter":true, 
       "aoColumns": [ 
        { "bSortable": true },    
        { "bSortable": true }, 
        { "bSortable": true },     
        { "bSortable": true }           
       ]     

      }); 
     }); 
</script> 




<table width='70%' align="center" cellpadding="0" cellspacing="0" border="1" name="userSTPForm" id="metalPager"> 
    <thead> 
    <tr> 
     <th>STATUS</th> 
     <th>SAPCODE</th> 
     <th>FIRST NAME</th>  
     <th>LAST NAME</th>       



    </tr> 
    </thead> 
    <tbody> 
     <logic:iterate name="listOfSTPUsers" id="listOfSTPUsersId" > 
      <tr> 
      <td><bean:write name="listOfSTPUsersId" property="value"/></td> 
      <td><html:link href="exelunitUpload.do?action_name=" ><bean:write name="listOfSTPUsersId" property="sapcode"/></html:link></td> 
      <td><bean:write name="listOfSTPUsersId" property="firstname"/></td> 
      <td><bean:write name="listOfSTPUsersId" property="lastname"/></td>           
      </tr> 
     </logic:iterate> 
    </tbody> 


</table> 

지금까지 IS 수행 한 URL.What와 매개 변수를 ,, 보낼 수 없다 URL과 함께 stpcode를 보내야합니다. 어떻게해야합니까 ?? 누군가 제발 도와주세요.

답변

0

HTML 링크를 만들고 있습니다. JSP EL을 사용하여 매개 변수의 값을 가져올 수 있습니다.

<html:link href="exelunitUpload.do?stpcode=${listOfSTPUsersId.stpcode}" ><bean:write name="listOfSTPUsersId" property="sapcode"/></html:link> 
+0

내 테이블이 코드 뒤에 사라집니다. 사용 가능한 데이터 테이블 – lucifer

+0

어떻게 될 수 있습니까? –

+0

내 테이블과 전체 코드를 추가했습니다. – lucifer