Hi,
I just started working on Struts 2 + Ajax. I am stuck on one problem. Can
somebody help me?

I have main page which has tabbedPanel with 3 remote tabs.
When i click submit in remote page in tab1, i want to load result page in
tab2.

I gave tab2 div id as target for the submit but the page does not load
inside tabbedPanel.


Struts.xml snippet:

        <action name="continue" class="com.foo.action.ContinueAction">
            <result name="success">/load_content.jsp</result>
        </action>

Sample code:

index.jsp:

 <s:url id="incUrl4" value="/corpinfo_content.jsp"/>
 <s:url id="incUrl2" value="/AjaxTest.action" />
 <s:url id="incUrl1" value="/main_content.jsp" />


     <s:tabbedPanel id="incorpContainer">
        <s:div theme="ajax" id="dInc1" label="Company" href="%{incUrl1}"
executeScripts="true"></s:div>
        <s:div theme="ajax" id="dInc2" label="Employee" href="%{incUrl2}" 
executeScripts="true"></s:div>
        <s:div theme="ajax" id="dInc4" label="Corporate Info"
href="%{incUrl4}" executeScripts="true"/> 
      </s:tabbedPanel>

main_content.jsp:

                <s:url id="continueAct" value="Continue.action"></s:url>
                <s:a href="%{continueAct}" targets="dInc2" > 
                   images/Continue.jpg </s:a>


Any help or suggestion is appreciated.
Thanks
Manisha
-- 
View this message in context: 
http://www.nabble.com/Strtus-2.0.11-AJAX-TabbedPanel-with-Remote-tabs%3A-How-to-load-the-result-page-in-another-tab-tp16115694p16115694.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to