This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes How to dispaly a row in a table condionally? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How to dispaly a row in a table condionally?" Watch "How to dispaly a row in a table condionally?" New topic
Author

How to dispaly a row in a table condionally?

Anoobkumar Padmanabhan
Ranch Hand

Joined: Aug 08, 2007
Posts: 103
Hi Ranchers

in my JSp page, i want to display a table with 4 columns. but one of the rows are displayed according to a condition. if it succeeds, the row have to be displayed. if it is false, the row shouldn't be display. how i can manage this?

please come up with quick answers.


Thanks<br /> <br />Anoobkumar<br />SCJP 1.5
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Originally posted by anoobkumar padmanabhan:
please come up with quick answers.

You may want to read this.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Conditionals are handled in JSP pages with the JSTL <c:if> or <c:choose> tags.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to dispaly a row in a table condionally?
 
Similar Threads
how to select a static row at runtime in jsp?
parent-child table relation
row id to display tag
AbstractTableModel - how to highlight a particular row
JXTable: Display the default selected row in the scroll