ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Maves <Nathan.Ma...@Sun.COM>
Subject Re: Dynamic Order By
Date Mon, 10 Jul 2006 21:56:19 GMT
Just a thought but I would not query the DB every time you need to re- 
sort your table.  I would do all of the sorting in plain old java,   
or better yet why not do it client side via javascript?


On Jul 10, 2006, at 2:25 PM, Nicolas Duroc wrote:

> Hello,
> I have a jsp page who displays a table of objects, and I would like  
> to sort the table in function of the columns, I use so an "order by".
> I tried to use a select with the "ordered column" in parameter in  
> the SQL Map, but it didn't work. The "ORDER BY" was not "executed".  
> I found few explanations about "Simple Dynamic SQL Elements", but  
> not really explicit.
> If anyone has some examples about use of Dynamic SQL Elements ?
> Thanks in advance
> Regards,
> Nicolas Duroc

View raw message