2012-04-28 4 views
1

Помощь необходима передача параметров с Struts 2.распорки 2 - Попутный параметров от одной страницы к другой

<action name="Hfddisp1" class="model.HfddispAction" method="fetch_addesc"> 
    <result >model.HfddispAction?ad_ref_no=${ad_ref_no}</result> 
</action> 

Мой JSP является

<%@ taglib prefix="s" uri="/struts-tags" %> 
<html> 
    <head> 
    </head> 
<body> 
    <h1> Iterator tag example 12</h1> 
    <h3>Iterator with IteratorStatus 12</h3> 
    <table> 
     <tr class="even"> 
     <td><b>Ad_ref_no</b></td> 
     <td><b>Ad_title</b></td> 
     </tr> 
     <s:iterator value="hftbList" status="hftbListStatus"> 
     <tr> 
    <s:if test="#hftbListStatus.even == true"> 
     <td style="background: #CCCCCC"><s:property value="ad_ref_no" /> </td> 
     <td style="background: #CCCCCC"><s:property value="ad_title" /> </td> 
     <td style="background: #CCCCCC">  
      <a href="<s:url action="Hfddisp1"/>">click here-1 </a> 
     </td> 
     </s:if>  
     <s:else> 
     <td> 
      <s:property value="ad_ref_no" /> 
     </td> 
     <td> 
      <s:property value="ad_title" /> 
     </td> 
     <td > 
      <a href="<s:url action="Hfddisp2"/> 
       <s:param name="ad_ref_no" value="% {ad_ref_no}" /> "> 
       click  here2 
      </a> 
     </td> 
     </s:else> 
    </tr> 
    </s:iterator> 
    </table> 

Ошибка я получаю:

сообщения: Никакого результата, определенного для модели действия. HfddispAction и результат огромного объема теста идет здесь, я могу сказать, что это такое

Файл: Файл:/E: /Web_workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Gshax/WEB-INF/classes/struts.xml

я набираюсь данные в итераторе, но не могут показать его на другой странице.

<--------qry is executed2hftb_add_master[ad_ref_no=huge volume of test goes here i can say what is it,email_address=null] 
<--------qry is executed2huge volume of test goes here i can say what is it 
description successfully queried:1 huge volume of test goes here i can say what is it 
Apr 26, 2012 12:07:04 PM org.apache.struts2.dispatcher.Dispatcher serviceAction 
SEVERE: Could not find action or result 

С первой страницы на выходе я получаю

Ad_ref_no Ad_title 

12123120 i am the king but not sing click here-1 
213421123 new test1 click here-2 
4150 Ad_title ........11:32:08 click here-1 
4152 Ad_title ........11:32:09 click here-2 
4153 Ad_title ........11:32:10 click here-1 

, когда я нажимаю нажмите здесь -1 я получаю выше ошибки Все, что я пытаюсь является передача нашей эры REF NO 4150 к действию и ДИСПЛЕЯ ОПИСАНИЕ в ДРУГОЙ ПААГ

+1

wht URL-адрес, который вы можете видеть по этому выражению '"> '? –

ответ