Thanks for reply. But I encounter this problem: In my main.jsp is the tab panel as follow:
<s:url id="messageList" value="/member/list.action" /> <s:tabbedPanel id="test2" theme="simple"> <s:div id="1" label="ALL" theme="ajax" href="%{messageList}" loadingText="Loading..." refreshOnShow="true" /> </s:tabbedPanel> And in my memberList.jsp, the display tag is defined as follow: <display:table name="messages" pagesize="18" requestURI=""> <display:column property="Id" title="ID" sortable="true" headerClass="sortable" /> <display:column property="Type" title="version" /> <display:column property="issueDate" title="Date" sortable="true" headerClass="sortable"/> </display:table> when I click on the sort hyperlink, it direct me to http://localhost:8080/app/folder/?dojo.preventCache=1197368118484&d-49653-s=3&d-49653-o=2 where the page is not found. And also the whole page refresh instead of the div in tab pannel. Is there anything I wrongly defined? Queenie Jeromy Evans - Blue Sky Minds wrote: > > quinquin2209 wrote: >> In main.jsp, I have a tabbed panel which has a remote tag loading an >> external >> page memberList.jsp. This memberList.jsp contains a display tag which is >> used for sorting and pagination. >> >> Now I encounter problem when I press on the display tag to do >> sorting/pagination. Every time I click on the hyperlink, it will redirect >> me >> from main.jsp to memberList.jsp. In fact, I want to stay in main.jsp with >> the display tag loaded to the tabbed panel. And I don't want the whole >> main.jsp to refresh but only the div loading the display tag refresh >> (like >> the remote link example in struts2 showcase). >> >> Any hint on how can i do it? >> >> Queenie >> > Have you set the requestURI attribute of the table tag to "" (blank)? > > eg. <display:table requestURI="" ... > > > While I'm typing the displaytag site is down so I can't give a > reference, but the default URL that displaytag uses for sorting is not > valid within a struts result as it uses the JSP path instead of the > action url. Setting requestURI to blank fixes this. The explanation is > somewhere at http://displaytag.sourceforge.net/1.1/ > > See this related message: > http://www.nabble.com/DisplayTag---How-to-do-sort--to14165999.html > > It is possible to use display:table within remote divs with sorting. > > regards, > Jeromy Evans > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Display-tag-and-target-div-tp14269874p14271123.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]