If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > JAVA > Display of different results from same table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-08-08, 08:02
swaprk swaprk is offline
Registered User
 
Join Date: Apr 2008
Posts: 1
Question Display of different results from same table

Hi all,

I have three tables Manufacturer,Model and Variant where Model references Manufacturer and Variant references Model. The scenario is, I have two pages namely: newCars.jsp and usedCars.jsp. Both the pages use the above tables to display data in them.

Now a real life situation may arise where some model or variant of some manufacturer is out of the market in which case i do not want to display that model or variant in my newCars page. whereas i always want all the models and variants to be displayed in the usedCars page. How can i solve this problem as both the pages use the same tables to display their data. I would appreciate any help in this.

Regards,
swaprk
Reply With Quote
  #2 (permalink)  
Old 04-14-08, 15:43
dimis2500 dimis2500 is offline
Registered User
 
Join Date: Jan 2005
Posts: 362
You may set a flag, a field "visible" and so to tell jsp to display or not.
Dimis
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On