struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From quinquin2209 <>
Subject Re: Display tag and target div
Date Tue, 11 Dec 2007 10:36:27 GMT

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" />

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"

when I click on the sort hyperlink, it direct me to
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?


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
> See this related message: 
> It is possible to use display:table within remote divs with sorting.
> regards,
> Jeromy Evans
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message