You're dealing with Ajax here, so you have to think about it from the client-side.

There is only one Document (or DOM), irrespective of where the parts have come from. Dojo requests the JSP that's going to be placed inside the tad and explicitly inserts it into the page. This means the JSP can rightly refer to elements that will contain it.
So even though the page is created from two JSP's, there's only one DOM.

Does that help?

Take a look at the examples on the struts 2 showcase. http://www.planetstruts.org/struts2-showcase/ajax/tabbedpanel/

Paranoid_Fabio wrote:
Thank you for the reply.

But I can't understand how I could set this div as target of the form if the
form is in other JSP, shown as result of the invoking of an action from
inside the tab. ??



Paranoid_Fabio wrote:
Hello. I try to explain the problem as cleary as possible:
I want to manage a jsp with two views: mainPage.jsp is a jsp with a tabbed
panel. In the tabbed panel I've two tabs. In each tab calls an action and
shows the resulting jsp correctly. Here's the code of mainPage.jsp tabbed
panel:

<s:tabbedPanel id="upload_options">
                                <s:url id="mu" action="showManual"/>
                                <s:div id="manual_upload_tab" 
key="ContentUploadMain.Option.1"
theme="ajax"             href="%{mu}">
                                        
                                </s:div>
                                <s:div id="auto_upload_tab" 
key="ContentUploadMain.Option.2"
theme="ajax">
                                <s:text name="manual" />
                        </s:div>
                        </s:tabbedPanel>

where the second tab is not implemented. The first tab shows the jsp
resulting from the call to the action "showManual", the jsp is
"ManualContentUpload.jsp"
When I post the form in this page, I get the ManualContentUpload action
invoked:

 <action name="ManualContentUpload"
class="actions.contents.upload.ManualUpload">
        <result name="success">/pages/UploadSuccess.jsp</result>
        <result name="error">/pages/ManualContentUpload.jsp</result>
        <result name="input">/pages/ManualContentUpload.jsp</result>
        <result name="upload_denied"
type="redirect">/pages/UploadDenied.jsp</result> </action>

What I want is that all the resulting jsp's still be shown in the tab of
the panel. How I can do this?
Thank you for help!








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

Reply via email to