*
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
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: 61002
    
  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: 61002
    
  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?