webtier@glassfish.java.net

How to Display Product Info like newark.com

From: <webtier_at_javadesktop.org>
Date: Sun, 06 Jun 2010 19:54:52 PDT

The pruduct display@ newark.com is amazing.

It not only display different kind of product with common attribute such as partnumber, description, avalabilty& price. But also display category specific attribute (extended attribute). For example, for capacitor, capacitance value is listed; for resistor, resistance is listed. Click the following links to get better understanding

Capacitor
http://www.newark.com/jsp/search/results.jsp?N=1001309&isGoback=false

Resistor
http://www.newark.com/jsp/search/results.jsp?N=1001644&isGoback=false

Looking at the two links, it seems to me only one JSP page plus category number
is used.

How this is achieved? I still do not have a clue after several months research
-------------------------------------------------------------------------------------------------------------------------------
My goal is to use only one JSP or JSF page to display the product,therefore, the # of columns & column names are dynamically resolved. In other words, when coding a JSF, the product type(resistor or capacitor) is unknown

Is my goal possible?

I guess the schema is similar to the following:
----------------------------------------------------------------------------------------------
category(categoryID, categoryName) :
(1, resistor)
(2, capacitor)

product(productID, availability, price, categoryID):
(p01, 100, 0.5, 1)
(p02, 200, 1.0, 2)

capacitor(productID, capatance):
(p02, 2uF)

resistor(productID, resistance):
(p01,50ohms)
[Message sent by forum member 'lihe65']

http://forums.java.net/jive/thread.jspa?messageID=473065