File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes How to make a table scrollable in Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Struts
Reply Bookmark "How to make a table scrollable in Struts" Watch "How to make a table scrollable in Struts" New topic
Author

How to make a table scrollable in Struts

vinu ganesh
Greenhorn

Joined: Sep 29, 2004
Posts: 2
Since the number of records for a table becomes huge, I preferred to make the table into a scrollable one and I tried implementing in Javascript and works fine.

Could anyone help me how to make it work using struts.

tried in google to find solutions too

Regards
Vinu.J
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4312

We've got a whole forum dedicated to Struts! So I'm going to move this thread over to that forum. Please post your replies there.
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4695

It won't be any different than what you are already doing.


A good workman is known by his tools.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11945
The solution in Struts is no different from your non-Struts solution. Struts doesn't have any taglibs for generating tables so you'll have to just include the same JavaScript you used before into your JSPs in the Struts application.

Alternatively, you could continue googling for a taglib that generates sortable etc. HTML tables. One of them might support scrolling.


Author of Test Driven (Manning Publications, 2007) [Blog] [HowToAskQuestionsOnJavaRanch]
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11945
I always do this. I type in a message, go pick up a sandwich from the grill (I always remember the sandwich a bit too late), and come back to click "submit" only to realize that someone else has posted a reply only a couple of minutes before I did. This time, I can't be bothered to delete mine
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4695

lol - that's happens to me too but usually the other person's answer is more elegant than mine.

Is a sooner submission really worth burning a sandwich? In My Hungry Opinion, no way!
 
IntelliJ Java IDE
 
subject: How to make a table scrollable in Struts
 
Threads others viewed
How can I print all the rows of a scrollable table?
JTable - JDBC - Vectors
How to render an html table in a text area?
scrollable paint component
Building a scrollable table in a JSP
IntelliJ Java IDE