wood burning stoves 2.0*
The moose likes Servlets and the fly likes How to create Dynamic table in View Page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to create Dynamic table in View Page" Watch "How to create Dynamic table in View Page" New topic
Author

How to create Dynamic table in View Page

Tarun Oohri
Ranch Hand

Joined: Feb 20, 2013
Posts: 172
Hello Everyone
I am facing a problem. What i have done till now is i make a table in html explicitly (by assigning fixed rows and columns) . Now what i want is to show a table of whose number of rows and columns are generated dynamically according to the table in the database.
Is this type of functionality possible ? If yes then what could be its solution.

Thanks in Advance..
Regards
Abhay Agarwal
Ranch Hand

Joined: Feb 29, 2008
Posts: 1075
    
    1

Multiple ways to achieve this ... depending upon front end page whether it is HTML or JSP.
Try exploring JSP expressions ... and JQuery to generate table dynamically as per data you send it to Front end page.
Balagopal Kannampallil
Ranch Hand

Joined: Oct 18, 2004
Posts: 136

You can achieve this in many ways depending on the approach you choose.
My personal favorite is JQuery. Have you got a chance to explore this?


SCJP 5.0 and now fighting with ExtJS
Tarun Oohri
Ranch Hand

Joined: Feb 20, 2013
Posts: 172

Thanks Abhay & Balagopal for showing your concern. No i have not yet tried my hands on JQuery but i have heard a lot about it. It is basically used in designing part , right ? All i know is java, javascript & Ajax..How should i approach it. please guide. Thanks
Balagopal Kannampallil
Ranch Hand

Joined: Oct 18, 2004
Posts: 136

Please refer this old ranch post for a basic idea.
Tarun Oohri
Ranch Hand

Joined: Feb 20, 2013
Posts: 172
Balagopal Kannampallil wrote:Please refer this old ranch post for a basic idea.

Thanks Balagopal , That was a great help...Cheers !!!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to create Dynamic table in View Page
 
Similar Threads
JTable
showing the tooltip for a Dynamic datatable
passing JS values between 2 pages
retrieve a row in a table
how would i create a table with dynamic rows and columns using only JSF components?