This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSP and the fly likes JSP pages list view and grid view Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP pages list view and grid view" Watch "JSP pages list view and grid view" New topic
Author

JSP pages list view and grid view

Gihan Pandigamage
Ranch Hand

Joined: Aug 23, 2009
Posts: 60
Hello friends,
I'm looking for an example code for jsp list view and grid view. I have created list view and grid view within the same jsp page. now I need to show list view when the user selects list view button and grid view when the user selects grid view button. Help me to figure out this.
cheers ....:)
Arun Giridhar
Ranch Hand

Joined: Mar 10, 2012
Posts: 140

Is List View is a Tree ?


Join IRC freenode ##javaee channel.
Gihan Pandigamage
Ranch Hand

Joined: Aug 23, 2009
Posts: 60
No it's just like a data table. you can see a sample here
example
Arun Giridhar
Ranch Hand

Joined: Mar 10, 2012
Posts: 140

Gihan Pandigamage wrote:No it's just like a data table. you can see a sample here
example


Thank You.

This doesn't come under Jsp :)
As far as i know i can use Javascript , based on onclick() gives different Action with respect to element (div ) .Based on the URI do business Logic and and display in same JSP page.

or you may use Ajax and JSON .

The Later sounds fine.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP pages list view and grid view
 
Similar Threads
Fetch 10K rows from table
Tidying up my code?
Reloading Panels in a CardLayout.
Customize 'Save As' dialog box provided by browser at client side
java.io.FileNotFoundException: Too many open files