I use the displaytag-1.1.jar and displaytag-portlet-1.1.jar. Now I can sort and page,the result is correct.
I want to add some serache condition,in the normal jsp and struts, the parameter in the form can be added in the href,after i post the form.
but in the portal i post the form and the parameter in the form can not be added to sort and page href
this is my codes
<html:form action="/search" method="post" styleId="testForm">
If I understand the issue correctly, you want to add the requestURI attribute to the <display:table> tag. This lets you include parameters on the URL, including search parameters. So you'd set the value for the requestUri in your Struts class, set it to a variable in your JSP, then eval that in the tag:
<% String uri = "/search.do?term=Search%20For%20This"; %>
<display:table requestURI="<%= uri %>">
Something like that...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I use the displaytag-1.1.jar and displaytag-portlet-1.1.jar. Now I can sort and page,the result is correct.
I want to add some serache condition,in the normal jsp and struts, the parameter in the form can be added in the href,after i post the form.
but in the portal i post the form and the parameter in the form can not be added to sort and page href
this is my codes
<html:form action="/search" method="post" styleId="testForm">
</html:form>
If I understand the issue correctly, you want to add the requestURI attribute to the <display:table> tag. This lets you include parameters on the URL, including search parameters. So you'd set the value for the requestUri in your Struts class, set it to a variable in your JSP, then eval that in the tag:
<% String uri = "/search.do?term=Search%20For%20This"; %>
<display:table requestURI="<%= uri %>">
Something like that...