How I want my code to work:
User types in a promo id, and data is retrieved from 'promotion' table in mysql according to what the user typed. For example, if user typed 'P01' for promo id, this is how it should look like (this is from a direct mysql query by the way):
The problem:
Data isn't displaying. (Only table headings are displayed)
There are no visible errors when I view my code in Eclipse.
moreinfo.jsp (takes in parameter of promo id; forwards it to PromotionDisplay servlet)
PromotionDisplayServlet
PromotionDisplay.java (object)
PromotionDB.java (takes in object PromotionDisplay)
displayPromotion.jsp (display results in a tabular format)
User types in a promo id, and data is retrieved from 'promotion' table in mysql according to what the user typed. For example, if user typed 'P01' for promo id, this is how it should look like (this is from a direct mysql query by the way):
The problem:
Data isn't displaying. (Only table headings are displayed)
There are no visible errors when I view my code in Eclipse.
moreinfo.jsp (takes in parameter of promo id; forwards it to PromotionDisplay servlet)
PromotionDisplayServlet
PromotionDisplay.java (object)
PromotionDB.java (takes in object PromotionDisplay)
displayPromotion.jsp (display results in a tabular format)