I just learnt basic Servlets and JSP technology and am designing a simple website using it.
The aim of the website is to sell products. The details of the products are stored in the database. I want to retrieve the data from the database and display the dynamic pages. I am using the MVC approach and trying to make it as OO as i can.
I am facing problem with the category page (which is intended to act as an index for the various products...i want to retrieve the categories stored in the DB and display them).
The details are as follows:
I have created a simple java class which represents the table. The table's name is "Categories" in the DB...This class is named CategoryTable and contains instance fields representing various attributes of the table.
A POJO named CategoryRetriever acts as my Model. it inserts the data of a particular row from the table into an object of CategoryTable and finally creates an ArrayList of the various CategoryTable Objects. This ArrayList contains all the retrieved data.
The Controller of the Design is a Servlet names CategoryController. it creates and object of the CategoryRetriever and passes this to a JSP named CategoryDisplayer.
All the things are getting compiled fine. Except the JSP. After deploying with WEBLOGIC. the jsp gives the following error.
G:\bea\weblogic81\server\bin.\myserver.wlnotdelete\extract\myserver_MiniProject_build\jsp_servlet__categorydisplayer.java:173: cannot resolve symbol symbol : class CategoryTable location: class jsp_servlet.__categorydisplayer CategoryTable tp = (CategoryTable)categoryContent.get(i); //[ /CategoryDisplayer.jsp; Line: 35] ^
From this what I can infer is that the JSP which is directly under the root project directory cannot find the CategoryTable class which is inside root>>WEB-INF>>source.
Does my JSP require an include statement or something? If yes, how to do it?