Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 959975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:06:31+00:00 2026-05-16T01:06:31+00:00

I just learnt basic Servlets and JSP technology and am designing a simple website

  • 0

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:

  1. 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.

  2. 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.

  3. 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.

  4. 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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T01:06:32+00:00Added an answer on May 16, 2026 at 1:06 am

    … cannot find the CategoryTable class which is inside root>>WEB-INF>>source…
    I think you mean the WEB-INF/classes folder.

    Does my JSP require an include statement or something…if yes, how to do it?
    Yes. To import your missing class:

    <%@ page import="CategoryTable" %>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just learnt about how to parse data in Xcode using NSXMLPARSER. In order
I have just learnt about temporary tables and using them has given me some
I'm a desktop application developer. I'm creating a basic website from which to sell
I'm working on a project (simple XML CMS) just to learn some basic PHP.
I must be asking a very basic question. I've just learnt how to apply
I am just starting to learn Ruby (first time programming), and have a basic
I just learnt about generators in Python a week back. From what I understood,
I just learnt XSLT today when I wanted to pretty print the playlist export
I've just learnt how to use the Struts 2 file uploader to upload a
I have just learnt Cocos2d, but i am not an expert on it. But

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.