Hi
there is 2 tables.
one is product and another is manufacturer
product has manu_id which is PK in manufacturer.
so when i show the product table
i got only manu_id from product table.
i want to show manu_name from manufacturer.
i tried like it
<c:forEach var="p" items="${allPro ducts}" varStatus="stat us">
<tr>
<td class="nowrap"> ${p.partNo}</td>
<td class="nowrap"> ${p.partName}</td>
<td class="nowrap"> ${p.desc}</td>
<td class="nowrap"> ${p.color}</td>
<td class="nowrap"> ${p.qty}</td>
<td class="nowrap">
<!-- i want to ${sessionScope. manuNameList[p.manuId].value}-->
${p.manuId}</td>
here manuNameList is HashMap<String, String>.
I don't know how to show the manu_name.
in fact, i just start learning java so no idea how to use it.If you have better ideas, pls share with me.
Thanks in advance
there is 2 tables.
one is product and another is manufacturer
product has manu_id which is PK in manufacturer.
so when i show the product table
i got only manu_id from product table.
i want to show manu_name from manufacturer.
i tried like it
<c:forEach var="p" items="${allPro ducts}" varStatus="stat us">
<tr>
<td class="nowrap"> ${p.partNo}</td>
<td class="nowrap"> ${p.partName}</td>
<td class="nowrap"> ${p.desc}</td>
<td class="nowrap"> ${p.color}</td>
<td class="nowrap"> ${p.qty}</td>
<td class="nowrap">
<!-- i want to ${sessionScope. manuNameList[p.manuId].value}-->
${p.manuId}</td>
here manuNameList is HashMap<String, String>.
I don't know how to show the manu_name.
in fact, i just start learning java so no idea how to use it.If you have better ideas, pls share with me.
Thanks in advance