2010-11-05 45 views
0

當我將表單提交到新頁面時,我在選項卡式面板內有一個表單。我想重定向到當前標籤中的新頁面。達到此目的的最佳方法是什麼? 這是我與形式的標籤面板代碼 -從選項卡表單鏈接回tabbedpanel

<%@ taglib prefix="s" uri="/struts-dojo-tags" %> 
<%@ taglib prefix="sx" uri="/struts-tags" %> 

<html> 
    <head> 
    <s:head debug="true"/> 
    </head> 
    <body> 
    <center> 
    <table border="0" width="50%"> 
    <tr> 
    <td width="100%"> 

    <s:tabbedpanel id="test" > 

     <s:div id="one" label="Tab 1" theme="ajax" labelposition="top" > 
     This is the first panel. 
     RoseIndia.nt<br> 
     JavaJazzUp.com<br> 
     NewsTrackIndia.com 
     </s:div> 

     <s:div id="two" label="Tab 2" theme="ajax"> 

     <sx:form action="addevent"> 

    <sx:textfield name="eventBean.eventName" label="First name" /> 
    <sx:textfield name="eventBean.eventDescription" label="Last name" /> 

     <sx:submit/> 

</sx:form> 
     </s:div> 

     <s:div id="three" label="Tab 3" theme="ajax"> 
     This is the third panel.<br> 
     Java Tutorial<br> 
     PHP Tutorial<br> 
     Linux Tutorial 
     </s:div> 

     <s:div id="four" label="Tab 4" theme="ajax"> 
     This is the forth panel. 
     </s:div> 

    </s:tabbedpanel> 

    </td> 
    </tr> 
    </table> 
    </center> 
    </body> 
</html> 

回答

1

您在768,16提交標籤

+0

致謝targets attribute看一看,爲我工作。 – 2010-11-09 12:19:53

相關問題