473,320 Members | 1,926 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Visual sortable (and perhaps pagable) table

dzenanz
45
I have existing web application:
-source/binary format: JDK 1.4
-sun java system application server
-jstl1.1
-oracle jdbc 1.4 (ojdbc14)

Now I need to show results of a stored procedure in DB on single page. What is best (and/or easiest) framework (jsf, struts, displaytag, etc) to use. I just want framework to handle sorting and maybe paging.

I have tried jsf, but it does not correctly autoconfigure (I get 404 for the newly added page), can you provide any help on that?
Apr 14 '08 #1
4 1499
Dököll
2,364 Expert 2GB
Hopefully you're still looking for this, dzenanz!

Have a look here for something I know works:
How To Retrieve @@IDENTITY Value Using JDBC

The infomation can be modified for your own use, add needed field values and so on.

Also, JSF is excellent for pagination, and so easy... Simply put:

(1) you'll need to call the stored procedure mentioned in the link above,
(2) load a dataTable in your jsf page,
(3) select the table in design mode of course,
(4) below your screen,
(5) find properties button
(6) Add pagination from there

You can do this without writing any code:-) Well, you'll need to modify the sql in your bean, but you'll get the point.

Let us know if hat worked...

Dököll
Dec 21 '08 #2
dzenanz
45
Ahh, I do not work for that company any more! I can not even remember how I solved that problem...

But this reply might help someone else with same/similar problem.

Dženan
Dec 22 '08 #3
JosAH
11,448 Expert 8TB
@dzenanz
Paging (efficiently) is SQL engine dependent; I remember PostgreSQL having an 'offset' and 'limit' keyword in the where clause; my Mimer SQL engine doesn't have that feature; I vaguely remember that Oracle also has a feature for that functionality.

In all other cases you have to skip a bunch of records from the result set and read a fixed amount of records afterwards; an expensive operation.

kind regards,

Jos
Dec 22 '08 #4
dzenanz
45
I know we had many stored procedures which accepted parameters like page size, page number, sort order etc.
But not all results are expected to possible be huge, and for those cases framework that does sorting, and perhaps also paging comes in handy.
Dec 22 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

34
by: Ian Rastall | last post by:
I'm doing a small project right now where I create a table from a database. This is the code, which Dreamweaver, for the most part, has written: *** <?php mysql_select_db($database_tdream,...
1
by: Henri Schomäcker | last post by:
Hi folks, what I need is a kind of 2D-Array which should, in the end, represent a typical html-table and which should be sortable by column. I thought of an implementation, where an vector...
3
by: TPhelps | last post by:
I have a sample of an unbound (autogeneratecolumns is true) sortable/pagable datagrid that works. I want to change one of the columns to a hyperlink. The examples I find use a bound column. I...
3
by: newtophp2000 | last post by:
I have several forms that display information from the database after users log in. I would like the column titles to be sortable so that when the user clicks on a column heading, the data...
1
by: vincemoon | last post by:
Sites such as download.com, dealtime.com, shopping.com, and tucows.com, feature impressive sortable lists of products. What software that imports CSV can be used to generate database-driven...
1
by: since | last post by:
I figured I would post my solution to the following. Resizable column tables. Search and replace values in a table. (IE only) Scrollable tables. Sortable tables. It is based on a lot...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.