4

I want to change the ugly displayTag (tableid) parameter from d-bunchofnumbers-p to a URL friendly one. I also want to change the sort and page parameters as well.

Is it trivial to do this?
If so, how? Is it as simple as setting the following properties?

<display:setProperty name="pagination.pagenumber.param" value="page"/> 
<display:setProperty name="pagination.sort.param" value="sort"/> 
<display:setProperty name="pagination.sortdirection.param" value="dir"/> 

The URL should look like this:

results?sort=id&dir=asc&page=1

I've tried this but, it's not working. Thanks!

Anne
  • 26,765
  • 9
  • 65
  • 71
milesmiles55
  • 677
  • 2
  • 13
  • 19

1 Answers1

0

I faced the same problem. After binding the grid with an implementation displaytag´s PaginatedList the parameters started looking more friendly.

Have a look at this post to understand what I´m talking about.

uvita
  • 4,124
  • 1
  • 27
  • 23